summaryrefslogtreecommitdiff
path: root/ext/node/02_require.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/node/02_require.js')
-rw-r--r--ext/node/02_require.js11
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,
},
};