From 3b0de03b59b0e3eee09c9161dc05e39544108a53 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Sat, 10 Sep 2022 11:38:11 -0400 Subject: fix(npm): remove export binding to match node (#15837) --- ext/node/02_require.js | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'ext/node') diff --git a/ext/node/02_require.js b/ext/node/02_require.js index 582d42194..f3ed266c3 100644 --- a/ext/node/02_require.js +++ b/ext/node/02_require.js @@ -13,7 +13,6 @@ ArrayPrototypePush, ArrayPrototypeSlice, ArrayPrototypeSplice, - FunctionPrototypeBind, ObjectGetOwnPropertyDescriptor, ObjectGetPrototypeOf, ObjectPrototypeHasOwnProperty, @@ -864,15 +863,6 @@ throw new Error("not implemented"); } - function bindExport(value, mod) { - // ensure exported functions are bound to their module object - if (typeof value === "function") { - return FunctionPrototypeBind(value, mod); - } else { - return value; - } - } - /** @param specifier {string} */ function packageSpecifierSubPath(specifier) { let parts = specifier.split("/"); @@ -892,7 +882,6 @@ toRealPath, cjsParseCache, readPackageScope, - bindExport, moduleExports: m, }, }; -- cgit v1.2.3