Michael Ficarra
4ab8503e5a
CoffeeScript 1.7.1
2014-01-29 23:19:36 -06:00
xixixao
10293df1f9
Recompile source with 1.7.0 version
2014-01-28 03:34:00 +00:00
Michael Ficarra
a5d6285cfd
forgotten compilation from parent commit
2014-01-25 22:54:25 -06: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
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
26dcf025f4
Remove in empty array optimization
2014-01-23 15:09:25 +00:00
Marc Häfner
873ed071d4
Fixes #3259 -- Use placeholders when adding params to scope
...
Don't register nested variables of complex parameters as parameters of the compiled function. Use the computed placeholder name instead.
2013-11-26 14:23:20 +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
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
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
Marc Häfner
d41d87a874
Avoid unnecessary wrapping of some bound functions
2013-11-03 03:14:13 +01: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
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
351c875576
merged in stricter noncallables
2013-10-20 18:49:30 -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
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
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
a3gis
89ef3d4117
accept all format of numbers in ranges
2013-09-24 19:15:31 +01:00
Caitlin Potter
1b7491d63d
Fixes #3132 - Improve rendering of block-comments
2013-08-23 20:53:18 -04:00
Marc Häfner
25c6001a6c
Speed up updateLocationDataIfMissing.
...
* Avoid excessive search for missing `locationData`
* Fix `locationData` for `ELSE IF`.
2013-06-21 02:47:29 +02:00
Michael Ficarra
ba7cb3ab69
fix #3029
2013-06-13 13:38:13 -05:00
Michael Ficarra
054443c46e
rebuild #3029
2013-06-13 13:35:40 -05:00
Jeremy Ashkenas
84b8b5ccee
CoffeeScript 1.6.3
2013-06-02 09:37:45 +04:00
Nami-Doc
b3ffd25339
Disallowed for own in
2013-05-26 00:29:26 +02:00
Michael Ficarra
174cd7eaa0
rebuild for some unneccessary parentheses changes
...
rebuild of 3921e3db34
2013-04-28 22:09:46 -05:00
Nami-Doc
7be996c010
code cleanup
2013-04-28 00:56:44 +02:00
Michal Srb
e7ebdce60f
Fix #2953 . Method calls on splice endpoints
2013-04-23 05:42:37 +02:00
Michal Srb
fd61476106
Fix #1069 . Non-callable literals shouldn't compile
2013-04-23 04:28:45 +02:00
Michal Srb
7b9699c5fa
Fix #1437 . Unneeded ref in existential assignment.
2013-04-22 21:58:49 +02:00
Michael Ficarra
3b38153759
Merge pull request #2940 from jiangmiao/issue2908
...
Fixes #2908 , add "\n" between pure literal header and function body.
2013-04-20 12:03:25 -07:00
Michael Ficarra
c785e00a15
Merge pull request #2929 from lucasb-eyer/master
...
Keep a single-line herecomment as a single-line js comment.
2013-04-15 13:12:43 -07:00
lucasb-eyer
ccc7c4404d
Keep the js comment on a single line if the herecomment is on a single line.
2013-04-15 21:45:55 +02:00
Marc Häfner
af81f6de70
Fix error reporting for invalid object key.
2013-04-12 18:10:26 +02:00
Marc Häfner
cf07fcb4b1
#2900 -- parameter-less catch clause.
...
Plus some minor cleanup after f8c6b494aa
2013-04-12 17:50:45 +02:00
Jeremy Ashkenas
170f311101
Merge branch 'master' of https://github.com/jashkenas/coffee-script
2013-04-06 09:31:30 +08:00
Jeremy Ashkenas
0cadcdc097
Fix regression with executable class bodies and prototypal attachment.
2013-04-06 09:31:24 +08:00
Miao Jiang
337ebd3ce9
Fixes #2908 , add "\n" between pure literal header and function body.
2013-04-05 13:20:59 +08:00
Nami-Doc
53a5f26430
fix #2846
2013-03-25 18:56:24 +01:00
Demian Ferreiro
22e8856b4d
Add floor division // and modulo %% operators, and compound forms of the new operators
...
Also kill the empty regex :(
2013-03-25 03:19:05 -03:00