Jeong, Heon
36a3e03048
Fixes issue #3349 , prints deprecation warning
...
This patch fixes issue #3349 , by prints deprecation warning for
users who depends on old(<1.7.0) implicit module registration.
2014-02-23 11:48:16 +09:00
Sean Hussey
a323160d14
Rudimentary fix for jashkenas/coffee-script#3379 .
2014-02-17 18:37:10 -05:00
Ricardo Tomasi
e7ba29514d
Register .coffee extension by default on Cakefile
2014-02-10 01:16:14 -02: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
Michael Ficarra
4ab8503e5a
CoffeeScript 1.7.1
2014-01-29 23:19:36 -06:00
Geoffry Song
38bd879a9a
Fix a typo causing module.paths to be always set as the cwd.
...
`options.fileName` was used instead of `options.filename`.
2014-01-29 13:23:19 -05:00
xixixao
10293df1f9
Recompile source with 1.7.0 version
2014-01-28 03:34:00 +00:00
xixixao
41c4c822ba
Recompile documentation js files with 1.7.0 version
2014-01-28 03:33:03 +00: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
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
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
1f301d8c07
Merge pull request #3292 from marchaefner/CLI
...
`coffee DIR` executes `DIR/index.coffee`
2013-12-29 14:24:02 -08:00
Jeremy Ashkenas
35f185440f
Merge pull request #3293 from marchaefner/master
...
Fix `child_process.fork` patch
2013-12-23 22:19:55 -08:00
Marc Häfner
a6891e4feb
Fix child_process.fork patch
...
* Preserve `options` when called without `args`
* Don't use `coffee` script as `execPath` (Fixes #2919 )
2013-12-24 02:05:53 +01:00
Marc Häfner
8a3ebb9181
CLI: Run index.coffee when called on a directory
2013-12-24 01:53:27 +01:00
xixixao
d7862647d9
Fix multiple postfix conditionals
2013-12-17 03:31:19 +01:00
Michael Ficarra
08a57898a7
add CoffeeScript.register method for require.extensions registration
2013-12-08 14:21:18 -06:00
Michael Ficarra
ba4743cc83
fix auto and manual require.extensions registration; ref #3141
...
You can now `require('coffee-script/register')` to manually register,
and the compiler auto-registers when directly running a coffee file.
2013-12-08 14:19:10 -06:00
Jeremy Ashkenas
94e22ab819
Merge pull request #3275 from marchaefner/CLI
...
Fix --watch handling of deleted sources
2013-12-07 22:28:19 -08:00
xixixao
bc975e556e
Prevent loop collection in endAllImplicitCalls
2013-12-05 21:53:42 +00:00
Marc Häfner
6804c1065b
Fix: EPERM when deleting watched dirs in Windows
...
* Suppress `EPERM` from watchers
* Suppress `EPERM` from `fs.unlink`
2013-12-04 17:12:24 +01:00
Marc Häfner
74cf54a84f
Prettify watch
2013-12-04 14:50:36 +01:00
Marc Häfner
73af30b5d8
Fixes #3267 -- Remove source maps of deleted source files
2013-12-01 12:03:22 +01:00
Marc Häfner
54633aee3f
Remove unnecessary parameter
2013-12-01 11:35:03 +01: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
xixixao
5e4cca90a3
Fix #3264 , missing leading whitespace before interpolation in heredoc
2013-11-27 20:53:20 +00:00
xixixao
a61b6ee925
Fixed leading whitespace before interpolation in simple strings
2013-11-27 20:29:45 +00:00
xixixao
ee9febe399
Handle nested calls and function oneliners when chaining
2013-11-27 04:57:44 +00:00
xixixao
15a70f863c
Implemented method call chaining
2013-11-27 03:41:52 +00:00
xixixao
42aa8d256c
Handle backslashes at the end of heredocs
2013-11-26 19:29:13 +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
xixixao
35d327a304
Escape newlines in heredocs with backslashes
2013-11-24 18:37:11 +00:00
Marc Häfner
52a54a7681
Fix and simplify management of sources in CLI
...
* Move all source path filtering to `compilePath`
* Restrict modification of `sources` to
* `compilePath` for adding
* `removeSource` for removing
* Don't add unfiltered paths to `sources` (and remove them later on)
2013-11-23 07:54:35 +01:00
Marc Häfner
1fe28c1fc9
Simplify and rename unwatchDir (to removeSourceDir)
2013-11-23 06:55:57 +01:00