sebmarkbage / link.js

Link.js is a module loader and conversion tool. It supports Labeled Modules, CommonJS and Asynchronous Module Definitions (AMD).
Other
29 stars 9 forks source link

parse() hangs on syntax error #7

Closed jakobo closed 4 years ago

jakobo commented 11 years ago

In theory, it should hit EOF and throw a parse exception or throw for an unmatched parenthesis/brace but it currently doesn't.

Code for reproduction:

.parse('define({testFn: function() { failing()); }})');