diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2022-09-10 11:38:11 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-10 11:38:11 -0400 |
commit | 3b0de03b59b0e3eee09c9161dc05e39544108a53 (patch) | |
tree | 7f76eb991a258956490ec95c6b400a44740c81d2 /ext/node/02_require.js | |
parent | a54d5654a26d29dfca1162ccc5476e9224a657e9 (diff) |
fix(npm): remove export binding to match node (#15837)
Diffstat (limited to 'ext/node/02_require.js')
-rw-r--r-- | ext/node/02_require.js | 11 |
1 files changed, 0 insertions, 11 deletions
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, }, }; |