Marijn Haverbeke
01a89cfec1
Mark release 0.9.0
2014-10-01 23:21:25 +02:00
r-e-d
f3e759cd03
Strict mode incorrectly reset after function
2014-09-30 11:45:20 +02:00
Max Schaefer
015a0e90bc
Only accept for-of loops in ECMA6 mode.
2014-09-29 11:27:14 +02:00
Ingvar Stepanyan
daedc6fcb3
Fixes #129 and spaces in template quasi literals.
...
* Added hack to correctly handle skipped spaces after= template expressions.
* Added `null` default values for regular functions.
* Added regression tests for both.
2014-09-26 17:04:22 +02:00
Ingvar Stepanyan
203384f7c2
Fixes marijnh/acorn#127 .
2014-09-23 22:58:44 +02:00
Marijn Haverbeke
6ea4139be1
Add note about deprecated scopeVisitor object
...
See issue #126
2014-09-22 17:08:50 +02:00
Marijn Haverbeke
49680b1c60
[loose parser] Take brace-line indentation into account for objlit closing heuristic
2014-09-22 15:15:12 +02:00
Marijn Haverbeke
39fa62e90f
[loose parser] Be slightly more agressive about heuristically closing object literals
2014-09-22 15:03:54 +02:00
Marijn Haverbeke
12cbfed34f
[loose parser] Don't omit unfinished object literal properties
2014-09-22 14:46:41 +02:00
Marijn Haverbeke
d0497ab212
Add parseExpressionAt function to the API
2014-09-15 21:03:07 +02:00
Marijn Haverbeke
ac31b0314c
Bump version number post-0.8
2014-09-12 16:57:40 +02:00
Marijn Haverbeke
456f74e34f
Mark version 0.8.0
2014-09-12 16:57:17 +02:00
Marijn Haverbeke
d98a432673
Really remove html from git repository
...
(The hook was still in place last time.)
2014-09-12 16:55:42 +02:00
Marijn Haverbeke
0322beb0aa
Add a prepublish step to package.json
2014-09-12 16:54:28 +02:00
Marijn Haverbeke
4d4daa07e0
Don't keep the docco output in the repository anymore
2014-09-12 15:50:34 +02:00
Marijn Haverbeke
91911bcfcd
Add bin/without_eval utility
2014-09-12 14:08:31 +02:00
Ingvar Stepanyan
10553cbced
Make token format compatible with Esprima and Mozilla-styled locations.
...
* Tokens are now instances of single exported constructor Token.
* Token objects are compatible with Esprima (only `type` format is different).
* Added token.loc in format of node.loc (Mozilla).
* Deprecated token.startLoc & token.endLoc.
* Updated comment generation example.
Also added ability to pass arrays in `onToken`/`onComment` where
tokens/comments will be collected in Esprima's format so you can
simply pass those arrays to `escodegen.attachComments`.
Updated docs and comment attachment example.
2014-09-08 12:20:08 +02:00
Max Schaefer
a246bf83d0
Do not throw syntax error if strict mode function has same name as one of its parameters.
2014-09-05 15:59:57 +02:00
Max Schaefer
7da3b6f1fd
Fix start position for HTML comments and add tests.
2014-09-05 15:53:36 +02:00
Marijn Haverbeke
6c854ad221
[loose parser] Be more careful about calling resetTo
...
It will try to eat whitespace, and can thus raise an unterminated comment exception
Issue #375
2014-09-05 15:31:15 +02:00
Marijn Haverbeke
40f1c67161
Remove trailing whitespace from acorn.js
2014-08-21 18:12:04 +02:00
Max Schaefer
1ca2115294
Remove unused local variables.
2014-08-21 18:10:48 +02:00
Marijn Haverbeke
e58f401b82
Bump version number post 0.7
2014-08-14 13:25:01 +02:00
Marijn Haverbeke
fe767e4cd8
Mark version 0.7.0
2014-08-14 13:24:24 +02:00
Marijn Haverbeke
69cadaa1e9
Add basic ES6 support in util/walk.js
2014-08-14 13:23:03 +02:00
Ingvar Stepanyan
372e1d42f3
Split ES6 Template logic from main functionality.
2014-08-14 12:48:50 +02:00
Marijn Haverbeke
d1a5db36cc
Fix sentence broken by 11dc953bc67195d978d59d106b48f8c0606c5bc0
2014-08-14 12:48:12 +02:00
Ingvar Stepanyan
11dc953bc6
Fix docs about sourceFile/directSourceFile.
2014-08-14 12:47:26 +02:00
Ingvar Stepanyan
ef045b9718
Remove copyToken from acorn_loose (not needed anymore).
2014-07-31 14:33:40 +03:00
Ingvar Stepanyan
1bf8c1420f
Added example for comments attachment.
...
* Fixed `onToken` & `tokenize` to return `startLoc` & `endLoc`
in token object only when `options.locations` is `true`.
* Fixed `onToken` tests.
* Added example for generating comments with escodegen.
2014-07-31 14:01:39 +03:00
Ingvar Stepanyan
be11e04383
Added onToken support.
2014-07-31 14:01:39 +03:00
Ingvar Stepanyan
278ac258df
Moved inTemplate initializer to appropriate place.
2014-07-31 14:01:38 +03:00
Marijn Haverbeke
73a890d6be
More nuanced attribution in comment
2014-07-29 15:18:59 +02:00
Marijn Haverbeke
292f8ece64
Re-run update_authors.sh to get proper project name in AUTHORS
2014-07-29 15:14:02 +02:00
Marijn Haverbeke
aac1807838
Include Harmony tests in test/index.html
2014-07-29 14:43:20 +02:00
Ingvar Stepanyan
3393460ebb
Fix Travis URL for future merge.
2014-07-29 14:41:50 +02:00
Ingvar Stepanyan
de48f8434d
Fixes for ES3 compatibility.
2014-07-29 14:41:50 +02:00
Ingvar Stepanyan
f0579c3e56
Renamed _multiplyModulo to _modulo as it's left as the only purpose of this token.
2014-07-29 14:41:50 +02:00
Ingvar Stepanyan
4663f6ae95
Update README.md
2014-07-29 14:41:49 +02:00
Ingvar Stepanyan
ff9c3550a4
Allow computed class method names (as per ariya/esprima#271 ).
2014-07-29 14:41:49 +02:00
Ingvar Stepanyan
acbef8557f
Treat line ending after yield keyword as end of YieldExpression
...
(as per http://people.mozilla.org/~jorendorff/es6-draft.html#sec-generator-function-definitions-runtime-semantics-evaluation ).
2014-07-29 14:41:45 +02:00
Ingvar Stepanyan
9d552efe45
Added Generator Comprehension support.
2014-07-29 14:41:44 +02:00
Ingvar Stepanyan
1c548e7848
Add missing Traceur source to repo.
2014-07-29 14:41:44 +02:00
Ingvar Stepanyan
e9635f450e
Delete harmonytest.js
2014-07-29 14:41:44 +02:00
Ingvar Stepanyan
afefac56bf
Added test to represent "import x, { ... } from 'module'" case.
2014-07-29 14:41:44 +02:00
Ingvar Stepanyan
9d5e0e7973
Increased benchmark time to 5 seconds per parser to get more realistic numbers.
2014-07-29 14:41:44 +02:00
Ingvar Stepanyan
711d21ec5a
Simplified name clash test.
2014-07-29 14:41:44 +02:00
Ingvar Stepanyan
8d30ad6196
Added separate token for star ('*') as it may have special meaning.
...
Fixed name clash check.
Moved check functions to single place.
2014-07-29 14:41:38 +02:00
Ingvar Stepanyan
8b19246615
Replaced UglifyJS2 with Traceur for fair comparison of ES6-enabled parsers.
2014-07-29 14:41:38 +02:00
Ingvar Stepanyan
7aab3539ce
Cleaning up + performance improvement by using hash objects for name clash checks.
2014-07-29 14:41:38 +02:00