Jeremy Ashkenas
e3454ed7fb
Fixes #2331 -- bound 'super' regression
2012-05-15 12:30:51 -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
Colin Ross
fa899ab810
Fix typo in test name
2012-05-12 06:34:12 +01:00
Gerald Lewis
f1b286469a
Wraps up #2211 -- addresses invocations within destructured params
2012-05-02 18:03:32 -04:00
Jeremy Ashkenas
879fe3976d
Fixes #2197 -- uncached double existential
2012-04-25 15:04:15 -04:00
Jeremy Ashkenas
6bcc798a76
Fixes #2207 -- unambiguous immediate implicit closes don't close implicit objects
2012-04-25 14:14:00 -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
87257ea6b3
Fixes #2258 -- allow parameter lists in the vertical style.
2012-04-24 16:56:39 -04:00
Jeremy Ashkenas
e433098eb2
Adding a test for #2273
2012-04-24 15:39:22 -04:00
Jeremy Ashkenas
afdcdcfd54
Fixes #2273 , reverts #643 -- no special variable treatment for loop variables.
2012-04-24 15:37:26 -04:00
Jeremy Ashkenas
4fc9a345bb
Fixes #2274 -- allow @variables as loop variables
2012-04-24 12:21:47 -04:00
Gerald Lewis
99394e1011
Fixes issue where destructured assignment params were incorrectly identified as duplicates.
2012-04-23 20:41:56 -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
46ff7705ee
corrections for octal escape sequences; allows "\0" alone; see #1547
...
Relevant sections of the spec:
* http://es5.github.com/#C
* http://es5.github.com/#B.1.2
* http://es5.github.com/#x7.8.4
2012-04-20 18:29:40 -04:00
Michael Ficarra
53a82da3f3
fixes #2255 : global leak with splatted @-params
2012-04-12 23:46:28 -04:00
Michael Ficarra
4043124135
tests for fix to #2052 , f3a1f46679
2012-04-11 18:35:51 -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
Jeremy Ashkenas
f0e17fc20f
fixing compound assignments to global variables. oof.
2012-04-10 17:07:38 -04:00
Michael Ficarra
6a88ce7d1e
fixes #2224 : various issues related to number lexing
...
This was... embarrassing. I'm just really glad we didn't cut a release
before this got fixed.
2012-03-27 21:31:20 -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
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
Michael Ficarra
28a1101b91
merging/improving @rolftimmermans fix/tests for #2007
2012-02-13 19:47:21 -05:00
Michael Ficarra
8248601b72
Merge branch 'object_literals_in_compr' of https://github.com/rolftimmermans/coffee-script into rolftimmermans-object_literals_in_compr
...
Conflicts:
test/objects.coffee
2012-02-13 19:41:47 -05:00
clutchski
40a9196c7f
Removing tab indentation.
2012-02-03 19:33:03 -05:00
clutchski
0ca255b7b8
Whitespace clean-up.
2012-02-03 19:31:26 -05:00
clutchski
8ade4f1077
Indentation fix.
2012-02-03 19:08:45 -05:00
Michael Ficarra
c0dac45fe1
OptionParser and related tests needed a cleanup
...
The object returned from OptionParser::parse no longer has a `literals`
property. It was pretty arbitrary, anyway.
2012-01-25 19:47:03 -05:00
Gerald Lewis
34e517de09
Issue #2060 Disallow uppercase radix prefixes and exponential notation
2012-01-20 17:23:50 -05: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
Gerald Lewis
4372138fdd
Issue #1547 'use strict' Python-style octal literal notation 0o777
...
Allows octals in the form '0o777' and '0O777'
Case insensitive
Disallows decimals prefixed with '0'
2012-01-16 17:22:19 -05:00
Gerald Lewis
8b179fb391
Issue #1547 'use strict' eval and arguments use restricted
2012-01-16 17:20:55 -05:00
Gerald Lewis
7521068ba3
Issue #1547 'use strict' duplicate formal parameter are prohibited
...
updated error message (thanks @davidchambers)
code style fixes
2012-01-16 17:19:14 -05:00
Gerald Lewis
3a694d7dfa
Issue #1547 'use strict' octal escape sequences prohibited
...
RegExp updated (thanks @michaelficarra)
and hex escapes for colors in Cakefile
tests updated (thanks @satyr)
error message conforms to existing Lexer SyntaxErrors
2012-01-16 17:18:13 -05:00
Gerald Lewis
66eb186a74
Issue #1547 'use strict' tests
2012-01-16 17:17:48 -05:00
Michael Ficarra
e207c983c1
cleaned up trailing whitespace; merging @geraldalewis's #2033
2012-01-16 15:50:09 -05:00
Michael Ficarra
9a23511965
adding test for #2037 ; should've included it in the first place
2012-01-16 15:38:00 -05:00
Gerald Lewis
ee9311c025
#1534 class then "use strict": modified strict error condition
2012-01-16 14:09:06 -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
80677a9d2b
#1534 class then "use strict" tests
2012-01-12 18:34:50 -05:00
Michael Ficarra
6d33a2e1a0
allowing capital B in binary literals; see #2021 ; thanks @BrendanEich
2012-01-12 13:21:29 -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
16e297ab61
Adding test to ensure that header is disabled by default
2012-01-10 14:03:48 -05:00