Skip to content
This repository was archived by the owner on Jul 13, 2020. It is now read-only.

Commit ba5e13f

Browse files
committed
processRegisterContext symbol upgrade path
1 parent d967af9 commit ba5e13f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/node-es-module-loader.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ NodeESModuleLoader.prototype[RegisterLoader.normalize] = function(key, parent, m
5050
});
5151
};
5252

53+
var PROCESS_REGISTER_CONTEXT = RegisterLoader.processRegisterContext;
54+
5355
// instantiate just needs to run System.register
5456
// so we fetch the source, convert into the Babel System module format, then evaluate it
5557
NodeESModuleLoader.prototype[RegisterLoader.instantiate] = function(key, metadata) {
@@ -82,7 +84,7 @@ NodeESModuleLoader.prototype[RegisterLoader.instantiate] = function(key, metadat
8284

8385
// evaluate without require, exports and module variables
8486
(0,eval)(output.code + '\n//# sourceURL=' + fileUrlToPath(key) + '!transpiled');
85-
loader.processRegisterContext(key);
87+
loader[PROCESS_REGISTER_CONTEXT](key);
8688

8789
resolve();
8890
});

0 commit comments

Comments
 (0)