princejwesley / Mancy

>_ Electron based NodeJS REPL :see_no_evil:
http://mancy-re.pl
MIT License
2.63k stars 133 forks source link

Mancyv2.2.2: cannot load javascript files with the word null #148

Closed orionlee closed 8 years ago

orionlee commented 8 years ago

In Mancy v2.2.2, if I load a javascript file including the word null, such as the followingil

function bar() {
  var bar = null; 
   return bar;
}

The loading just failed and stopped silently.

The word null can even simply be in comment for the loading to fail:

function bar() {
  var bar = 123; // null; the loading still fails 
   return bar;
}

The problem no longer exists in v3.1.0, v3.1.0 has a similar problem for another type of text (block comment in class functions. See #146.

Thanks.

princejwesley commented 8 years ago

👍