Jeremy Ashkenas
7792a3a6e3
CoffeeScript 1.3.2
2012-05-14 14:45:20 -04:00
Michael Ficarra
ed705403ad
Merge pull request #2299 from geraldalewis/2213-no-method-is-array
...
Wraps up #2211 -- addresses invocations within destructured params
2012-05-12 17:30:48 -07:00
Michael Ficarra
848d10594b
reverting premature start of solution to #2306
2012-05-08 16:22:26 -04:00
Michael Ficarra
caf3da2f66
lexer/parser: split out null and undefined from BOOL token
...
also made explicit AST nodes `Bool`, `Null`, and `Undefined`
2012-05-08 16:14:28 -04:00
Gerald Lewis
f1b286469a
Wraps up #2211 -- addresses invocations within destructured params
2012-05-02 18:03:32 -04:00
Jeremy Ashkenas
46065199cd
Fixes #2287 -- tweak extends to make jshint easier
2012-04-25 17:33:21 -04:00
Jeremy Ashkenas
879fe3976d
Fixes #2197 -- uncached double existential
2012-04-25 15:04:15 -04:00
Maxwell Krohn
3e95d7f2d0
Reapply the removed patch from bugfix_1183 in PR 2252. Include a test
...
case to show it's required.
What's going on: inside of Coffee-generated closures, calling `super()`
is implicitly making use of `this` (or explicitly doing so if you look
at the output code), so we have to pass `this` through closures as if
`@` is being accessed within the closure. So, just add one more
condition to the list in `Closure::literalThis`
2012-04-24 21:48:18 -04:00
Jeremy Ashkenas
34be878257
Fixes #1183 , Refactors #2252 , super calls in inner functions
2012-04-24 17:23:37 -04:00
Jeremy Ashkenas
afdcdcfd54
Fixes #2273 , reverts #643 -- no special variable treatment for loop variables.
2012-04-24 15:37:26 -04:00
Gerald Lewis
99394e1011
Fixes issue where destructured assignment params were incorrectly identified as duplicates.
2012-04-23 20:41:56 -04:00
Trevor Burnham
d58da49cee
Intermediate version bump to 1.3.2-pre
2012-04-23 13:34:04 -04:00
Jeremy Ashkenas
0fada5109a
Merge pull request #2213 from geraldalewis/2211-destructed-splats
...
Issue #2211 -- splats in destructured parameters
2012-04-23 09:00:22 -07:00
Michael Ficarra
53a82da3f3
fixes #2255 : global leak with splatted @-params
2012-04-12 23:46:28 -04:00
Maxwell Krohn
7b66e22bc6
now it works for all of #1183 . This should do it.
2012-04-11 18:22:52 -04:00
Maxwell Krohn
5542e00b80
sart work on a bugfix, but we're not covering the exact case in issue #1183
2012-04-11 18:05:33 -04:00
Michael Ficarra
f3a1f46679
fixes #2052 : don't manually assign constructors' name property
...
I'm not sure how we would test this, so... no tests.
2012-04-11 12:14:44 -04:00
Jeremy Ashkenas
60c9b94656
CoffeeScript 1.3.1 (quick bugfix for compound assignment to a global variable
2012-04-10 17:26:23 -04:00
Jeremy Ashkenas
f0e17fc20f
fixing compound assignments to global variables. oof.
2012-04-10 17:07:38 -04:00
Jeremy Ashkenas
ed8d94f69c
CoffeeScript 1.3.0
2012-04-10 14:57:45 -04:00
Gerald Lewis
c5737764b5
Issue #2211 -- splats in destructured parameters
2012-03-23 13:20:15 -04:00
Michael Ficarra
ddd6e9a48b
abb11c80d1 didn't consider objects with [[Call]]
2012-03-10 11:54:31 -05:00
Michael Ficarra
abb11c80d1
splatted constructors returning null should produce the new instance
2012-03-07 18:19:53 -05:00
Jeremy Ashkenas
7c1f4b38f4
start with 1, then 2 for reused vars.
2012-02-29 23:46:03 -05:00
Jeremy Ashkenas
b9cfb5a7d8
Fixes #2155 -- existential assignment to a closure
2012-02-29 23:41:57 -05:00
Jeremy Ashkenas
1c8411f628
merging in early error for compound assignment to undeclared variables.
2012-02-28 10:42:11 -05:00
Jakub Wieczorek
eb8e20c3ef
Fix a confusing error message for '(arguments) ->'
2012-02-12 15:38:42 +01:00
Gerald Lewis
c3a8a4f81f
Issue #2054 "{arguments}"
...
Fixes error message: SyntaxError: variable name may not be "true"
Permits assigning to "arguments" and "eval" properties in
object literals.
2012-01-19 11:33:43 -05:00
Michael Ficarra
7c56da26f6
fixes #2055 : destructuring assignment with new
2012-01-18 23:12:50 -05:00
Gerald Lewis
bf8e0aa1ea
Issue #1547 'use strict' style tweaks, cleanup, and compiled output
2012-01-16 17:35:21 -05:00
Michael Ficarra
df7ab264ab
fixes #2037 : line terminators are incorrectly added after herecomments
...
thanks @geraldalewis for finding the relevant line and making this fix
way too easy for me
2012-01-16 15:38:00 -05:00
Gerald Lewis
2ec4c38433
#1534 class then "use strict": multiple directives support
2012-01-14 15:07:32 -05:00
Gerald Lewis
fd1fa7d551
#1534 class then "use strict": herecomments fix
2012-01-13 13:59:24 -05:00
Gerald Lewis
5816de39ba
#1534 class then "use strict" compiled output
2012-01-12 18:35:04 -05:00
Michael Ficarra
ff05575b78
fixes #1973 : redefining Array/Object constructors shouldn't break helpers
2012-01-10 17:01:27 -05:00
Trevor Burnham
11342ef97b
Rebuilding -> our JS files now include the generated header
2012-01-10 12:55:41 -05:00
Jeremy Banks
3484ca5e64
Merge remote-tracking branch 'jashkenas/master' into fix-conditional-assignment
...
Conflicts:
test/assignment.coffee
2012-01-03 03:09:46 -05:00
Jeremy Ashkenas
8dfec65034
Fixes #1980
2011-12-27 16:54:14 -08:00
Michael Ficarra
080ed2e8dd
fixes #1966 : external constructors should produce their return value
2011-12-24 06:51:14 -05:00
Michael Ficarra
0c4cb309b0
getting rid of excessive spaces after Class.name = "Class" assignment
2011-12-24 06:49:21 -05:00
Michael Ficarra
8d5f800e2f
literals need newlines after them
2011-12-24 06:46:09 -05:00
Michael Ficarra
c6c527e830
appeasing Jeremy: switching prefix increments out for postfix equivalent
2011-12-21 14:37:38 -05:00
Michael Ficarra
fc0a169a9a
fixes #1910 : loop index should be mutable within a loop iteration and immutable between loop iterations
2011-12-21 14:06:34 -05:00
Jeremy Ashkenas
a477880edc
Fixes #960 -- 'do' is now more efficient and permissive about undefined values.
2011-12-18 20:53:30 -05:00
Jeremy Ashkenas
1018c51359
Fixes #494 : Forcing named classes in CoffeeScript (named functions) ... even in IE.
2011-12-18 20:00:09 -05:00
Jeremy Ashkenas
8d8c345216
removing unused @name
2011-12-18 19:37:11 -05:00
Jeremy Ashkenas
846306f85e
Fixes #1771 : Fixing the indexOf shim.
2011-12-18 13:02:27 -05:00
Jeremy Ashkenas
0069c4901f
reverting the closure wrapper removal again.
2011-12-18 10:35:42 -05:00
Jeremy Ashkenas
93b118bfa2
Revert "reverting to 26a28abcb5 behaviour"
...
This reverts commit 38b6a43e26 .
2011-12-18 10:27:32 -05:00
Michael Ficarra
38b6a43e26
reverting to 26a28abcb5 behaviour
...
This is only slightly problematic for the most pathological of cases
where a prelude is followed by a set of statements, none of which
generate top-level variables or attempt to return. In these cases, the
non-prelude statements will be indented. See related discussion at
e4b3e838e2 .
2011-12-15 22:11:42 -05:00