Marijn Haverbeke
6659f7a033
Fix special case to handle regexps that start with =
...
Closes #55
2013-08-28 10:35:21 +02:00
Marijn Haverbeke
6113324cd2
Fix bug with parsing slash after operator-keyword property
...
Closes #53
2013-08-25 15:01:20 +02:00
Marijn Haverbeke
38f0e80547
Include diacritical combining marks in identifier character set
...
Closes marijn/tern#157
2013-05-21 09:07:50 +02:00
Marijn Haverbeke
62bc3641af
Use a single .handler property on TryStatements
...
As the wiki page for the spec currently seems to prescribe.
2013-04-02 09:30:35 +02:00
Marijn Haverbeke
54e78b7035
Properly back up line state when re-reading a token on strict mode
...
Issue #38
2013-03-25 15:10:55 +01:00
Marijn Haverbeke
38179fd855
Fix node boundaries for unexpected regular expressions
...
Closes #33
2013-02-28 19:28:20 +01:00
Marijn Haverbeke
87a6a5a8cd
Clean up readNumber, fix parsing of '2.+2'
...
Issue #9
2013-01-30 16:38:31 +01:00
keeyipchan
44f7aff2b7
Add testAssert() for arbitrary tests; fix skinLineComments() passing off-by-1 character to onComment(slice(.., end))
2013-01-27 10:09:06 +01:00
Marijn Haverbeke
cc5971f617
Formatting
2013-01-04 09:37:21 +01:00
Arian Stolwijk
f6e0182a3a
Fixes sourceFile option.
...
When setting the .prototype.source the sourceFile variable is undefined, and
setting the sourceFile option doesn't change the .source property on the
prototype anymore.
By setting the .source property inside the node_loc_t constructor, the correct
sourceFile is set in the loc object.
2013-01-04 09:32:43 +01:00
Marijn Haverbeke
d36c70bbbf
Add missing labels.pop() to allow re-using labels in a block
...
Issue #15
2012-11-22 10:11:00 +01:00
Marijn Haverbeke
5c44c13465
Make sure readInt doesn't try to read past len, if given
...
Issue #15
2012-11-22 10:07:19 +01:00
Marijn Haverbeke
5771c8b4b2
Add missing semicolon() calls to debugger and throw statement parsers
...
Issue #5
2012-11-22 09:48:01 +01:00
Marijn Haverbeke
74536b9eb7
Remove test that raised error from the JS engine's RegExp parser
2012-11-21 14:38:21 +01:00
Marijn Haverbeke
905124c291
Assign parenthesized expressions a range that includes the parens
...
This way, composite expressions that they are part of won't get bogus
unsyntactic substrings as their range (i.e. in '(1)+1', the binop expression
would span '1)+1').
Closes #14
2012-11-18 21:17:49 +01:00
Marijn Haverbeke
6b52dc8a84
Disallow newline after throw
...
Closes #11
2012-10-18 15:50:07 +02:00
Marijn Haverbeke
daefc220da
Require a semicolon after do/while
2012-10-17 23:09:15 +02:00
Marijn Haverbeke
e3514627a4
Add funky newlines to nonASCIIwhitespace
2012-10-17 23:02:48 +02:00
Marijn Haverbeke
96d911a30f
Properly parse 10. as a valid number
...
Closes #9
2012-10-12 23:34:11 +02:00
Marijn Haverbeke
0590d12240
Accept \0 in strings in strict mode
...
Closes #3
2012-10-03 22:18:52 +02:00
Marijn Haverbeke
0820a593a6
Handle break-to-labeled-non-loop
...
Closes #1
2012-10-03 10:25:53 +02:00
Marijn Haverbeke
5db60dcac9
Conform to Moz spec with regards to loc properties
2012-10-02 18:01:32 +02:00
Marijn Haverbeke
32e62f1cfc
Partial parser comments
2012-10-02 10:14:57 +02:00
Marijn Haverbeke
03d95cda2c
Make tests runnable under node
2012-09-24 11:50:03 +02:00
Marijn Haverbeke
587c790f7b
Add esprima-derived tests, trivial benchmark
2012-09-24 11:42:01 +02:00