From ed2a110f916b35a516dda6093b308e21027a92eb 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 7dc44d5bbe2..ff809a91291 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) {