Anatoly Ressin
e8a4e93a72
Added failing test case for the yield precedence
2014-10-12 20:08:28 +03:00
Jeremy Ashkenas
158ca0d869
Merge pull request #3638 from lbeschastny/issue3638
...
Invalid block comments compilation
2014-09-23 14:52:03 -04:00
Leonid Beschastny
77d5b95260
Added test for jashkenas/coffee-script#3638
2014-09-17 15:02:18 +04:00
Andreas Lubbe
efca2861a6
added tests for yield, yield from, yield return and yield in if statements
2014-09-06 17:25:44 +02:00
Andreas Lubbe
565d78f00b
removed support for '->*" and '=>*'
2014-09-06 13:38:04 +02:00
Andreas Lubbe
75900660fd
Merge remote-tracking branch 'A/master'
2014-09-06 11:32:25 +02:00
Will Stamper
94c467b520
Quick spelling fixes
2014-08-26 20:41:32 -05:00
Yad Smood
f7b36054fc
Add a test case for compiler error formatting.
...
Error formatting with mixed tab and space.
2014-07-16 17:50:15 +08:00
minodisk
deead4bfad
Fix wrong location issue in heregex interpolation
2014-07-13 16:39:41 +09:00
minodisk
5920939e23
Fix wrong location issue in "string" interpolation
2014-07-03 13:11:20 +09:00
minodisk
2b539ebea8
Fix wrong location issue in string interpolation starting with line break
2014-07-01 11:28:21 +09:00
dabbler0
159d562230
Fix off-by-one issue with string interpolation in lexer
2014-07-01 10:55:17 +09:00
Quentin Barbe
c65f584112
Do not rely on properties order in scope tests
2014-05-21 16:40:44 +02:00
forty
c608901d5a
Add tests to check that the FOR variable is defined after the loop
2014-05-20 23:37:33 +02:00
Jeremy Ashkenas
63acf6a5ff
Merge pull request #3355 from aroben/kill-isUndefined
...
Remove reference to never-defined .isUndefined property
2014-03-15 16:37:59 -04:00
Michael Ficarra
a2c0106b3f
fixes #3363 : modulo operator evaluation order
2014-02-08 20:56:34 -06:00
Demian Ferreiro
0ad30e9b3f
Fix #3361 , make %% coerce right operand only once
...
Force coercion of right operand once before doing arithmetic with it in the `__modulo` utility function.
2014-02-08 13:24:39 -03:00
Simon Lydell
4bbd63c883
Make patched stack traces’ prelude consistent with V8
...
In V8, the `stack` property of errors contains a prelude and then the
stack trace. The contents of the prelude depends on whether the error
has a message or not.
If the error has _not_ got a message, the prelude contains the name of the
error and a newline.
If the error _has_ got a message, the prelude contains the name of the
error, a colon, a space, the message and a newline.
In other words, the prelude consists of `error.toString() + "\n"`
Before, coffee-script’s patched stack traces worked exactly like that,
except that it _always_ added a colon and a space after the name of the
error.
This fix is important because it allows for easy and consistent
consumption of the stack trace only:
`stack = error.stack[error.toString().length..]`
2014-02-07 13:01:01 +01:00
Adam Roben
8980647f32
Add tests for the optimization of trailing return statements
...
This documents current behavior. When #1038 was fixed, we also optimized
away trailing "undefined" and "return undefined", but that is no longer
the case.
2014-02-06 09:21:35 -05:00
Jeremy Ashkenas
570529f526
Fixing tests for browser.
2014-01-27 11:55:20 -05:00
xixixao
04b0b94a8c
Fixes chaining after inline implicit objects
2014-01-26 22:11:10 +00:00
Michael Ficarra
cc1b74f11b
Merge pull request #3329 from xixixao/issue3325
...
Fixes #3325 : implicit indendation error messages
2014-01-25 22:00:24 -08:00
xixixao
104b4666fe
Fix indendation error messages
2014-01-26 05:25:13 +00:00
xixixao
c2727d964c
Fix for declarations in object literals
2014-01-26 04:41:30 +00:00
Andreas Lubbe
f375394381
Merge https://github.com/jashkenas/coffee-script
...
Conflicts:
lib/coffee-script/lexer.js
lib/coffee-script/parser.js
lib/coffee-script/rewriter.js
src/lexer.coffee
src/rewriter.coffee
2014-01-25 19:37:35 -08:00
Michael Ficarra
d687d52f9e
Merge pull request #2887 from epidemian/more-math-operators
...
Add new mathematical operators
2014-01-24 13:18:29 -08:00
Demian Ferreiro
6a43de789f
Simplify modulo tests
2014-01-24 17:55:50 -03:00
Demian Ferreiro
1288786fdc
Make modulo operator convert arguments to numbers
2014-01-24 16:08:39 -03:00
Demian Ferreiro
2b4421fca1
Merge branch 'master' into more-math-operators
...
Conflicts:
lib/coffee-script/grammar.js
lib/coffee-script/lexer.js
lib/coffee-script/nodes.js
lib/coffee-script/parser.js
test/regexps.coffee
2014-01-24 15:40:28 -03:00
xixixao
bd6b4142fe
Fix expansion in destructuring inside comprehensions
2014-01-24 18:20:45 +00:00
xixixao
369e0545c0
Added expansion to destructuring
2014-01-24 16:00:34 +00:00
xixixao
8b976acac1
Fixes #1871 , close implicit objects in implicit returns
2014-01-23 23:12:12 +00:00
Jeremy Ashkenas
b00962db1a
Merge pull request #3322 from xixixao/issue1099
...
Fix #1099 , remove in empty array optimization
2014-01-23 07:16:00 -08:00
xixixao
26dcf025f4
Remove in empty array optimization
2014-01-23 15:09:25 +00:00
Jeremy Ashkenas
d2f90d2236
Merge pull request #3320 from xixixao/issue1275
...
Fix #1275
2014-01-22 10:54:18 -08:00
xixixao
c3391e1dd8
Fix 1275
2014-01-22 18:33:44 +00:00
xixixao
f0463e9981
Improve error messages for generated tokens
2014-01-22 02:54:09 +00:00
xixixao
39cb8815f7
Fixed chaining semantics after outdent
2014-01-21 22:00:57 +00:00
Michael Ficarra
21db08a23d
add missing implicit object literal test
...
ref michaelficarra/CoffeeScriptRedux#266 and 670a1f5f78 (diff-2)
2014-01-12 11:16:27 -06:00
Andreas Lubbe
25b1eee293
first attempt at including 'yield*'
2013-12-23 19:32:25 -08:00
Andreas Lubbe
dab4ae9416
'->*' and '=>*' now produce generators
2013-12-19 18:08:25 -08:00
Andreas Lubbe
56b04a58dc
first attempt at using '->*" and '=>*' for generators
2013-12-19 14:21:14 -08:00
xixixao
d7862647d9
Fix multiple postfix conditionals
2013-12-17 03:31:19 +01:00
Andreas Lubbe
e1000205fd
Merge github.com:jashkenas/coffee-script
2013-12-05 11:56:34 -08:00
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
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
Marc Häfner
26200f4640
Improve HEREDOC regexp
...
* Exclude trailing blank line from the match group
* Fix backslash handling
2013-11-28 16:46:00 +01:00
Marc Häfner
13f205404c
Merge pull request #3261 from xixixao/issue1273
...
Fix #1273 , Handle backslashes at the end of heredocs
2013-11-28 07:32:20 -08:00