mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00
lib: add trailing commas to all public core modules
PR-URL: https://github.com/nodejs/node/pull/46848 Reviewed-By: Debadree Chatterjee <debadree333@gmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
This commit is contained in:
parent
1101713cc2
commit
9dbb1623ff
30 changed files with 212 additions and 243 deletions
|
@ -18,7 +18,7 @@ const {
|
|||
const {
|
||||
ERR_ASYNC_CALLBACK,
|
||||
ERR_ASYNC_TYPE,
|
||||
ERR_INVALID_ASYNC_ID
|
||||
ERR_INVALID_ASYNC_ID,
|
||||
} = require('internal/errors').codes;
|
||||
const {
|
||||
deprecate,
|
||||
|
@ -61,7 +61,7 @@ const {
|
|||
const {
|
||||
async_id_symbol, trigger_async_id_symbol,
|
||||
init_symbol, before_symbol, after_symbol, destroy_symbol,
|
||||
promise_resolve_symbol
|
||||
promise_resolve_symbol,
|
||||
} = internal_async_hooks.symbols;
|
||||
|
||||
// Get constants
|
||||
|
@ -259,7 +259,7 @@ class AsyncResource {
|
|||
set: deprecate(function(val) {
|
||||
self = val;
|
||||
}, 'The asyncResource property on bound functions is deprecated', 'DEP0172'),
|
||||
}
|
||||
},
|
||||
});
|
||||
return bound;
|
||||
}
|
||||
|
@ -278,7 +278,7 @@ const storageHook = createHook({
|
|||
for (let i = 0; i < storageList.length; ++i) {
|
||||
storageList[i]._propagate(resource, currentResource, type);
|
||||
}
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
class AsyncLocalStorage {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue