google / traceur-compiler

Traceur is a JavaScript.next-to-JavaScript-of-today compiler
Apache License 2.0
8.18k stars 580 forks source link

require is not working from command line node interpreter #1195

Open arv opened 10 years ago

arv commented 10 years ago
// test.js
var fs = require('fs');
$ ./traceur test.js
Error: ModuleEvaluationError: 'ReferenceError: require is not defined' in /media/Source/traceur/test

This is because we use System.script which is async and called in a new context that does not have the current context in scope.

domenic commented 10 years ago

+1