From c2c3b6f4344e044d146547c0b4a57ef93b391230 Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Thu, 24 May 2018 13:49:22 +0200 Subject: [PATCH] lib: use object destructuring for ContextifyScript MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/20934 Reviewed-By: Anna Henningsen Reviewed-By: Michaƫl Zasso Reviewed-By: Colin Ihrig Reviewed-By: Gus Caplan Reviewed-By: Richard Lau Reviewed-By: Ruben Bridgewater Reviewed-By: James M Snell Reviewed-By: Trivikram Kamat Reviewed-By: Weijia Wang --- lib/internal/bootstrap/loaders.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/internal/bootstrap/loaders.js b/lib/internal/bootstrap/loaders.js index 7dc44d5bbe28fb..ff809a91291bee 100644 --- a/lib/internal/bootstrap/loaders.js +++ b/lib/internal/bootstrap/loaders.js @@ -104,7 +104,7 @@ }; } - const ContextifyScript = process.binding('contextify').ContextifyScript; + const { ContextifyScript } = process.binding('contextify'); // Set up NativeModule function NativeModule(id) {