Andreas Lubbe
9d29a830df
entire generator test file is now ignored if generators are not available
2013-11-30 12:26:32 -08:00
Andreas Lubbe
74a92db173
improved readability of generator test
2013-11-30 11:45:19 -08:00
Andreas Lubbe
d712a6c0f4
npm run-script test-harmony executes generator tests
2013-11-29 20:59:22 -08:00
Andreas Lubbe
7906a2b6c1
removed yield from the reserved words
2013-11-29 20:58:43 -08:00
Andreas Lubbe
f11ca9888f
added a test for generators
2013-11-29 20:58:26 -08:00
Andreas Lubbe
9941050120
using 'yield' automatically turns functions into generators
2013-11-15 22:19:31 +01:00
Andreas Lubbe
dafc7bdea5
added 'yield' to the unary keywords
2013-11-15 22:16:28 +01:00
Andreas Lubbe
f51cbd7117
removed 'yield' from the reserved keywords
2013-11-15 22:15:31 +01:00
Marc Häfner
592aa33577
Fixes #2367 -- super in for-loop
2013-11-15 06:35:04 +01:00
Marc Häfner
544c99a9ad
Fix error location for illegal pure statements
2013-11-15 05:37:34 +01:00
Jeremy Ashkenas
de0e3baf1f
Merge pull request #3237 from marchaefner/fixSuper
...
Fix super-related tagging of `Code` nodes
2013-11-14 19:25:50 -08:00
Marc Häfner
aea0f2533b
Fixes #3232 -- Tag all class properties static
...
(and remove duplicate `context` assigment)
2013-11-15 03:44:26 +01:00
Marc Häfner
138c25fe5f
Cleanup and extend METHOD_DEF
...
* Fixes #2949 : Detect reserved names (not only for instance methods)
* Don't assign names which might result in incorrect `super` calls
2013-11-12 16:53:09 +01:00
Jeremy Ashkenas
e0195756dc
Merge pull request #3234 from marchaefner/issue3087
...
Fixes #3087 -- Use `fs.*Sync` for CLI compilation
2013-11-10 04:19:49 -08:00
Marc Häfner
96ae98fade
Fixes #3087 -- Use fs.*Sync for CLI compilation
...
* Make `compilePath` synchronous
* Remove unused variable
2013-11-10 08:36:29 +01:00
Nami-Doc
efb9809d3b
Merge pull request #3233 from xixixao/issue2953cleanup
...
Clean up `Method calls on splice endpoints`
2013-11-09 16:20:13 -08:00
xixixao
0dada3dd27
Remove unnecessary type conversions to Number
2013-11-10 00:13:52 +00:00
xixixao
849c8e8ef4
Remove unnecessary existential check
2013-11-10 00:13:14 +00:00
Jeremy Ashkenas
9e9c83f788
Merge pull request #3228 from marchaefner/fixClassCompilation
...
Avoid unnecessary wrapping of some bound functions
2013-11-05 18:47:01 -08:00
Marc Häfner
d41d87a874
Avoid unnecessary wrapping of some bound functions
2013-11-03 03:14:13 +01:00
Jeremy Ashkenas
ab40571ffc
Merge pull request #3227 from marchaefner/fixClassCompilation
...
Fix scope of external constructor reference / Refactor `Closure`
2013-11-01 13:08:27 -07:00
Marc Häfner
5d13d14de9
Closes #3008 -- Fix scope of constructor reference
...
* Make scope of `Code` nodes accessible (prior to `compileNode`)
* Use correct scope for reference of external constructor.
* Remove unreachable code.
2013-11-01 01:13:10 +01:00
Marc Häfner
1df8abf1cb
Refactor closure compilation
...
* Break up `Closure` and merge `Closure.wrap` into `Base.compileClosure`
* Construct class closure directly in `Class.compileNode`
* Reuse `isLiteralArguments` in `Range.compileArray`
* Move all helpers to bottom of file
* Add test for #3063
2013-10-31 23:25:11 +01:00
Jeremy Ashkenas
45b60c9a52
Merge pull request #3224 from marchaefner/fixClassCompilation
...
Minor fixes for class compilation
2013-10-28 17:51:23 -07:00
Marc Häfner
091bc56a96
Code cleanup in Class
...
* Don't insert unnecessary `_ref` (in the wrong scope)
* Improve code prettiness. (Reverts most of 903e9c99 )
2013-10-29 00:01:20 +01:00
Marc Häfner
9ba1d41ec8
Fix: __extends helper above directive prologue
2013-10-26 06:54:54 +02:00
Jeremy Ashkenas
5456bd5f89
Merge pull request #3218 from marchaefner/issue3059
...
Escapable linebreaks in heregexes
2013-10-23 16:03:32 -07:00
Marc Häfner
0d662c3ad2
Missing parentheses
2013-10-24 00:43:29 +02:00
Marc Häfner
fa76e2dd21
Escapable linebreaks in heregexes
2013-10-24 00:36:46 +02:00
Jeremy Ashkenas
54840c0cbf
Merge pull request #3214 from marchaefner/issue3059
...
Escaped whitespace and slashes in Heregexes
2013-10-22 09:35:00 -07:00
Marc Häfner
91ac3fa031
Escaped whitespace and slashes in Heregexes
...
* Resolves #3059 : Don't remove escaped whitespace.
* Fixes #2238 : Prevent escaping slashes that are already escaped.
* Fix detection of end of heregex with escaped slashes.
2013-10-22 18:08:17 +02:00
Jeremy Ashkenas
c22707cd53
Fixes #2941 -- don't destroy extensionless filenames for --join
2013-10-20 19:09:55 -03:00
Jeremy Ashkenas
351c875576
merged in stricter noncallables
2013-10-20 18:49:30 -03:00
Jeremy Ashkenas
35b64d7f18
Merge pull request #3211 from marchaefner/issue2181
...
Fix compilation for conditional assignment
2013-10-20 14:16:38 -07:00
Jeremy Ashkenas
db87d817e8
Merge pull request #3012 from imcotton/parallel-loading
...
Script loading parallelized in browser
2013-10-20 14:10:40 -07:00
Jeremy Ashkenas
f3c5cc6774
Fixes #3019 - Documentation tweak to default argument meaning.
2013-10-20 18:08:28 -03:00
Marc Häfner
4cc2c305a4
Fixes #2181 -- conditional assignment as subexpression
...
* Parenthesize compilation of `||=` and `&&=` (when needed).
* Fix variable caching for `?=`
2013-10-20 22:59:01 +02:00
Jeremy Ashkenas
a5513c45d0
Fixes #3047 -- Fixes module.paths when running directly with no explicit passed-in files.
2013-10-20 17:50:13 -03:00
Jeremy Ashkenas
c820e0241e
Fixes #3053 - error for mismatched own/for-in without an index.
2013-10-20 17:40:50 -03:00
Jeremy Ashkenas
eb2ac2c64d
Fixes #3063 -- wait a moment so that an error can be raised.
2013-10-20 17:04:52 -03:00
Jeremy Ashkenas
59cf19fd1c
Fixes #3072 -- tweak process.argv to match when running REPL
2013-10-20 16:53:08 -03:00
Jeremy Ashkenas
d5a25d138d
Fixes #3089 -- don't mutate options passed in to compile()
2013-10-20 16:21:06 -03:00
Jeremy Ashkenas
a7ecd80c92
Merge pull request #3096 from marchaefner/issue2994
...
Disallow single-line `IF expr ELSE` without `THEN`
2013-10-20 12:13:39 -07:00
Jeremy Ashkenas
465cffc675
Merge pull request #3113 from mklement0/make-repl-use-global-context
...
Make the REPL *CLI* use the global context to be consistent with the node REPL *CLI*.
2013-10-20 09:17:07 -07:00
Jeremy Ashkenas
302a46d093
Merge pull request #3132 from caitp/issue-3132
...
Format block-comments better
2013-10-20 09:08:40 -07:00
Jeremy Ashkenas
392767a04e
Fixes #3143 -- Potential memory leaks caused by use of fat arrow next to other (non-fat-arrow-using) long-lived closures.
2013-10-20 12:53:18 -03:00
Jeremy Ashkenas
928f949761
Fixes #3160 -- a missing bit of locationData
2013-10-20 12:15:15 -03:00
Jeremy Ashkenas
8bb833d858
Merge pull request #3165 from grschafer/master
...
Fix constructor_destructuring docs example to alert a defined value
2013-10-20 08:04:44 -07:00
Jeremy Ashkenas
2b03fa9077
Fixes #3166 -- add a (simpler) flag to suppress the generated header.
2013-10-20 12:03:37 -03:00
Jeremy Ashkenas
cfdb774da9
CoffeeScript REPL should be able to require coffeescript files.
2013-10-20 11:22:23 -03:00