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
Jeremy Ashkenas
e4b3e838e2
removing the closure-wrapping-removal optimization, because it was incorrectly formatting the code it optimized.
2011-12-15 15:21:58 -05:00
Jeremy Ashkenas
fac615108c
Fixes #1861
2011-12-14 12:44:27 -05:00
Jeremy Ashkenas
ddfe89d916
cleaning up super assignment.
2011-12-14 12:38:19 -05:00
Jeremy Ashkenas
b0948f81dd
Fixes #1876
2011-12-14 12:17:21 -05:00
Jeremy Ashkenas
85286b8ca5
Fixes #1842
2011-12-14 11:02:10 -05:00
Jeremy Ashkenas
74944da211
fixing extra newline in the prelude
2011-12-14 10:41:17 -05:00
Jeremy Ashkenas
c9a0a33fa2
reverting 63ab88
2011-12-14 10:39:20 -05:00
Michael Ficarra
26a28abcb5
fixes #1509 : compile initial comments/literals outside of safety wrapper
2011-12-12 02:49:21 -05:00
Michael Ficarra
621e5648e3
fixed #1858 for real now
2011-12-10 22:40:08 -05:00
Michael Ficarra
f0728fcf8f
fixes #1858 : top-level returns should force safety wrapper
2011-12-10 22:06:38 -05:00
Michael Ficarra
63ab886e9f
removed excessive spacing
2011-12-10 21:19:59 -05:00
Michael Ficarra
0ce332edca
fixes #1911 : remove spacing around initial skipped comments/JS
2011-12-04 16:43:26 -05:00
Marijn Haverbeke
24836ccf6d
Stop treating debugger statements as jumps
...
Since in most debuggers you can continue past them.
No tests added, since I wasn't sure how to test code with `debugger`
in it.
2011-11-25 12:46:39 +01:00
Jeremy Ashkenas
2fb6d0beb9
Revert "Closes #1001 . Throw cannot be directly used as an expression with parens, but can appear as a statement in an expression."
...
This reverts commit 96b22a16eb .
2011-11-24 09:33:45 -05:00
Jeremy Ashkenas
1e25c9da30
Merge pull request #1851 from michaelficarra/issue1844
...
fixes #1844 : bound functions in nested comprehensions causing empty var statements
2011-11-14 07:49:51 -08:00
satyr
5bf8b422f8
nodes: added missing jump-guard in While::makeReturn, fixing #1850
2011-11-11 06:56:49 +09:00
Michael Ficarra
424bb17224
cleaning up tab calculation in last commit
2011-11-10 03:14:41 -05:00
Michael Ficarra
6d6a5f609a
fixes #1844 : bound functions in nested comprehensions
...
causing empty var statements
2011-11-10 03:08:38 -05:00
Michael Ficarra
d359764fba
fixes #1774 : generate safety wrapper only when necessary. awesome.
2011-10-17 16:12:09 -04:00
Michael Ficarra
cf996d2c4a
quick fix to part of new issue in #1099 :
...
`not in []` unconditionally compiled to `false`
2011-10-03 06:43:00 -04:00
Jeremy Ashkenas
981db17b8f
Adopting coco-style efficient bound functions for the common case ... but not for class/prototypes.
2011-09-25 21:44:23 -04:00
Michael Ficarra
08762a101c
fixes #1723 : operator precedence in unbounded splice compilation
2011-09-22 02:14:07 -04:00
Michael Ficarra
3b5c889040
fixes #1722 : operator precedence in unbounded slice compilation
2011-09-21 18:56:20 -04:00
Jeremy Ashkenas
0199515cef
experimental change -- comments wanted. writing out helper functions and assignments as a single line, to minimize clutter.
2011-09-18 17:29:01 -05:00
Jeremy Ashkenas
37705e712b
removing the extra newline that block comments take
2011-09-18 17:19:09 -05:00
Jeremy Ashkenas
d2b0404188
big whitespace / readability change. join top level block with extra newlines, and class definitions as well.
2011-09-18 17:16:39 -05:00
Jeremy Ashkenas
4419f7ca0f
Issue #1703 , - --x
2011-09-17 22:21:47 -04:00
Jeremy Ashkenas
a0d4242da4
Merge pull request #1666 from geraldalewis/1643_splatted_access
...
#1643 splatted access
2011-09-09 16:17:24 -07:00
Gerald Lewis
447c3639e7
#1643 : compiled JS
2011-09-09 19:03:40 -04:00
satyr
ad1bc1e0b8
closes #1669 ; loop results are now collected in the same way as auto-returns are generated
2011-09-07 12:13:23 +09:00
Gerald Lewis
43a8b46203
fixes #1643 : splatted accesses in destructuring assignments no longer create obj.key var declarations
2011-09-01 14:47:10 -04:00
Gerald Lewis
e17b67e6f2
fixes #1591 : splatted expressions in destructuring assignment must be assignable
2011-08-30 11:12:25 -04:00
Michael Ficarra
2ff6c4c3fc
fixes #1630 : in should check indices of the right operand when it can
...
pass a `hasOwnProperty` check for them
2011-08-26 15:44:00 -04:00
Gerald Lewis
2fb2ddb9b4
fixes #1513 -- top level bare obj literals now wrapped in parens for unary and exists operations
2011-08-15 11:06:36 -04:00
Jeremy Ashkenas
7e4d6198d4
#1568 , new super in a function body.
2011-08-14 17:24:19 -04:00
Jeremy Ashkenas
9a026e51bd
Issue #1595 , reusing a variable in a catch leads to missing declaration.
2011-08-14 17:04:54 -04:00
Jeremy Ashkenas
50982b668b
Issue #1598 -- enabling super() calls in static functions in class bodies.
2011-08-14 16:51:59 -04:00
Jeremy Ashkenas
42f2bd926b
Merge pull request #1590 from geraldalewis/proto_access
...
#1234 Protoype Access in :: Operator
2011-08-12 11:21:46 -07:00
Gerald Lewis
c9fd0659c2
revised patch for #1234 ; consolidated Value#push and Value#concat into Value#add; removed unnecessary INDEX_PROTO
2011-08-12 13:38:34 -04:00
Michael Ficarra
c3fe29455b
finishing up fix for #1009 : class @do; it's a little bit ugly, but it
...
makes sense to do it this way
2011-08-11 01:52:10 -04:00
Michael Ficarra
df5aca9348
fixes #1005 : invalid identifiers allowed on LHS of destructuring
...
assignment
2011-08-11 01:11:33 -04:00
Gerald Lewis
29a44b84d5
fixes #1234 ... :: now creates an intermediary "prototype" Access node before any additional property accesses
2011-08-10 22:01:47 -04:00
Michael Ficarra
818216374c
Merge branch 'restructuring' of github.com:jashkenas/coffee-script
2011-08-08 13:21:58 -04:00
Michael Ficarra
c222da9dd6
Merge branch 'restructure' of https://github.com/gfxmonk/coffee-script into restructuring
...
Conflicts:
Cakefile
2011-08-05 17:47:54 -04:00
gfxmonk
ab17f41652
Moved src/*.coffee under src/coffee-script/ so that lib can be added to $NODE_PATH and only expose the top-level coffee-script namespace. Fixes #1246
2011-07-05 21:58:04 +10:00