mirror of
https://github.com/nodejs/node.git
synced 2024-11-29 23:16:30 +01:00
lib: use object destructuring for ContextifyScript
PR-URL: https://github.com/nodejs/node/pull/20934 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Weijia Wang <starkwang@126.com>
This commit is contained in:
parent
4f28015d22
commit
ed2a110f91
@ -104,7 +104,7 @@
|
||||
};
|
||||
}
|
||||
|
||||
const ContextifyScript = process.binding('contextify').ContextifyScript;
|
||||
const { ContextifyScript } = process.binding('contextify');
|
||||
|
||||
// Set up NativeModule
|
||||
function NativeModule(id) {
|
||||
|
Loading…
Reference in New Issue
Block a user