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

Commit f20b178

Browse files
committed
fix evaluation
1 parent 65e1384 commit f20b178

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/system-register-loader.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,11 @@ SystemRegisterLoader.prototype.instantiate = function(key, metadata) {
4646
if (isNode)
4747
Promise.resolve(fs || (fs = typeof require !== 'undefined' ? require('fs') : loader.import('fs').then(m => m.default)))
4848
.then(function(fs) {
49-
console.log(fs);
5049
fs.readFile(fileUrlToPath(key), function(err, source) {
5150
if (err)
5251
return reject(err);
5352

54-
(0, eval)(source);
53+
(0, eval)(source.toString());
5554
thisLoader.processRegisterContext(key);
5655
resolve();
5756
});

0 commit comments

Comments
 (0)