Sebastian McKenzie
349eba33ce
add async functions to traceur differences
2014-11-13 13:40:54 +11:00
Sebastian McKenzie
8ff21b407d
temporarily forbid AssignmentExpression destructuring outside of ExpressionStatement
2014-11-13 13:40:41 +11:00
Sebastian McKenzie
751ea7a12c
v1.12.7
v1.12.7
2014-11-13 13:19:45 +11:00
Sebastian McKenzie
b30cd227cc
update acorn-6to5 - fixes #153
2014-11-13 13:18:59 +11:00
Sebastian McKenzie
b3c4ca26fa
Merge branch 'async-await' of https://github.com/sebmck/acorn
2014-11-13 13:17:10 +11:00
Sebastian McKenzie
2506be7b1a
Add support for exporting async functions
2014-11-13 13:16:49 +11:00
Sebastian McKenzie
18dc7b8143
v1.12.6
v1.12.6
2014-11-13 12:55:39 +11:00
Sebastian McKenzie
1c628bbec1
disable generation/comments/comment-only test
2014-11-13 12:53:38 +11:00
Sebastian McKenzie
d4c3dde02a
update to latest acorn-6to5
2014-11-13 12:49:29 +11:00
Sebastian McKenzie
e58be3b8bb
Merge branch 'master' of https://github.com/marijnh/acorn
...
Conflicts:
acorn.js
test/run.js
2014-11-13 12:48:14 +11:00
Sebastian McKenzie
a587106a6b
v1.12.5
v1.12.5
2014-11-13 12:26:16 +11:00
Sebastian McKenzie
9c1b60e451
fix excessive whitespace trimming resulting in innaccurate sourcemap line - fixes #151
2014-11-13 12:25:11 +11:00
Rich Harris
f48a921e24
allow export { default } from "foo"
2014-11-12 17:42:55 +01:00
Marijn Haverbeke
98691e5b80
Properly initialize top node start position
2014-11-12 17:31:45 +01:00
Sebastian McKenzie
0c7e0b65b9
add browser support, array comprehension, async functions and generator comprehension to differences table
2014-11-13 03:24:45 +11:00
Marijn Haverbeke
249e6961f8
Make tests pass for loose parser
...
Define Program node extent to be the whole program, make
both parser and the tests conform to this.
Fix a bunch of bugs in the loose parser's handling of corner
cases.
Issue #151
2014-11-12 17:05:19 +01:00
Ingvar Stepanyan
bc64d3c5f4
Add support for nested groups in log (Chrome console + browser).
2014-11-12 16:19:16 +01:00
Ingvar Stepanyan
96ccdb05fa
Web-driver support for loose parser + small fixes.
...
* Added support for acorn_loose and grouped log to web-driver.
* Removed unused copy-pasted `parseTemplate` from loose parser.
* Throw non-SyntaxError errors immediately (as those are generic).
2014-11-12 16:19:16 +01:00
Ingvar Stepanyan
6bf8311061
Loose: fix #33 .
2014-11-12 16:19:16 +01:00
Ingvar Stepanyan
2419de74dc
Loose: Fix regex after tokenizer changes in #144 .
2014-11-12 16:19:16 +01:00
Ingvar Stepanyan
fc2e96fa01
Loose: respect optional semicolons in break/continue/class/import/export.
2014-11-12 16:19:16 +01:00
Ingvar Stepanyan
d4565fed53
Loose: ES6 import, export.
...
Removed "kind" from tests for ES6 import/export as it's
left only for backward compatibility.
2014-11-12 16:19:15 +01:00
Ingvar Stepanyan
4647f966eb
Loose: don't silently skip missed elements in expr list.
2014-11-12 16:19:15 +01:00
Ingvar Stepanyan
aa96edf769
Loose: support for-of without var.
2014-11-12 16:19:15 +01:00
Ingvar Stepanyan
1589a959fa
Loose: yield support.
2014-11-12 16:19:15 +01:00
Ingvar Stepanyan
80f8d527ff
Loose: Skip ES7 tests as we are targeting ES6 now.
2014-11-12 16:19:15 +01:00
Ingvar Stepanyan
bdce88c184
Loose: for-of statement.
2014-11-12 16:19:15 +01:00
Ingvar Stepanyan
992fc0503d
Loose: arrow functions.
2014-11-12 16:19:15 +01:00
Ingvar Stepanyan
ede10a079c
Loose: class support.
2014-11-12 16:19:15 +01:00
Ingvar Stepanyan
c6b6ef389e
Loose: Remove own tabSize initialization in favor of defaultOptions.
2014-11-12 16:19:15 +01:00
Ingvar Stepanyan
9cdc6809ce
Loose: fix pattern+defaults case in function params.
2014-11-12 16:19:15 +01:00
Ingvar Stepanyan
b46b53e149
Loose: implement object methods; expose processed options from acorn.
2014-11-12 16:19:15 +01:00
Ingvar Stepanyan
143066184c
Emit full stack trace for unknown exceptions.
2014-11-12 16:19:15 +01:00
Ingvar Stepanyan
dda90580df
Loose: Added support for shorthand properties.
2014-11-12 16:19:15 +01:00
Ingvar Stepanyan
963a26e46f
Loose: Added support for let and const.
...
Fixes #146 .
2014-11-12 16:19:15 +01:00
Ingvar Stepanyan
4879af22d1
Loose: Added support for assignment patterns to expression and variables.
2014-11-12 16:19:15 +01:00
Ingvar Stepanyan
c5145cedb2
Fix no-options case for acorn.
2014-11-12 16:19:14 +01:00
Ingvar Stepanyan
eba8a5646c
Loose: added support for holes in arrays (but disallows trailing comma).
2014-11-12 16:19:14 +01:00
Ingvar Stepanyan
a14a5c8192
Loose: Added support for rest parameters.
...
Includes correction of mistype ".." vs "...".
2014-11-12 16:19:14 +01:00
Ingvar Stepanyan
b47696eecf
Avoid UnaryExpression-specific properties in SpreadElement (just in case).
2014-11-12 16:19:14 +01:00
Ingvar Stepanyan
72df78cc88
Avoid separate handling of SpreadElement in favor of UnaryExpression parser.
2014-11-12 16:19:14 +01:00
Ingvar Stepanyan
ac8bdc608d
Allow specifying expected comments/tokens arrays with onComment/onToken.
...
Allows to avoid both custom `testAssert` and adding extra arguments in `test`.
2014-11-12 16:19:14 +01:00
Ingvar Stepanyan
6d64834352
Removed manual onComment test in favor of new argument.
2014-11-12 16:19:14 +01:00
Ingvar Stepanyan
0abe4b64a8
Collect test stats separately for each mode.
2014-11-12 16:19:14 +01:00
Ingvar Stepanyan
b7367a2a8c
Make setOptions non-destructive for original object.
2014-11-12 16:19:14 +01:00
Ingvar Stepanyan
11ecb20e9e
Loose: ES6 function params support.
2014-11-12 16:19:14 +01:00
Ingvar Stepanyan
c26fd33826
Clone test options object since calling parse is destructive for it.
2014-11-12 16:19:14 +01:00
Ingvar Stepanyan
61d2067b2b
Loose: Added ParenthesizedExpression.
2014-11-12 16:19:13 +01:00
Ingvar Stepanyan
7db211d56a
Added loose parser support to test runner (currently failing for 208/1680).
2014-11-12 16:19:13 +01:00
Ingvar Stepanyan
d424874cf8
Editorconfig: enforce Unix line endings and extra new line in the end of file.
2014-11-12 16:19:13 +01:00