Jeremy Ashkenas
81047d45ee
CoffeeScript 1.8.0
2014-08-26 12:24:29 -04:00
Joe Lee-Moyet
2ec6e7e944
Use '.js.map' as file extension for created map files
...
Addresses jashkenas/coffeescript#3297
2014-07-29 17:28:08 +01:00
Yad Smood
3465e7554d
Fixed an error formatting issue f7b36054fc
...
When using tab for code indent, the error marker
will be wrongly positioned.
2014-07-16 17:56:07 +08:00
minodisk
deead4bfad
Fix wrong location issue in heregex interpolation
2014-07-13 16:39:41 +09:00
minodisk
5920939e23
Fix wrong location issue in "string" interpolation
2014-07-03 13:11:20 +09:00
minodisk
2b539ebea8
Fix wrong location issue in string interpolation starting with line break
2014-07-01 11:28:21 +09:00
dabbler0
159d562230
Fix off-by-one issue with string interpolation in lexer
2014-07-01 10:55:17 +09:00
Marko Schulz
9410216b02
Make getCommandId() more readable.
2014-06-03 22:50:25 +02:00
Marko Schulz
233055a7ab
Implement changes recommended in the pull request.
2014-06-03 11:29:03 +02:00
Marko Schulz
edf3c12fcc
Handle dotless commands in the REPL.
...
Node 0.11 switched to storing the REPL commands dotless internally.
This fixes the problem brought up in #3450 .
2014-06-02 13:24:57 +02:00
Michael Ficarra
1bb3c843e1
Merge pull request #3450 from ehuss/node11repl
...
Fix repl for Node 0.11.12.
2014-05-28 07:56:15 -07:00
David Chambers
1cd48a9f5d
command: deprecate --join
2014-05-11 22:41:39 -07:00
Marko Schulz
3fdc3a4758
Fix help for .load
2014-05-01 14:54:43 +02:00
Eric Huss
03705c674f
Fix repl for Node 0.11.12.
...
Node changed their repl so that it inherits from readline.Interface.
This means that `prompt` is now the rli function and not the original
prompt string. This may be a little hacky, but I figure it would give
someone a start if they want to do a better fix.
The commit that changed this in Node is joyent/node@3ae0b17c76
This bug was mentioned in Issue #3395 .
2014-04-19 01:18:21 -07:00
Jeremy Ashkenas
63acf6a5ff
Merge pull request #3355 from aroben/kill-isUndefined
...
Remove reference to never-defined .isUndefined property
2014-03-15 16:37:59 -04:00
Jeong, Heon
a82aecc008
Improved coding convention and messages.
2014-02-23 13:03:42 +09:00
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
Adam Roben
e9a0512663
Remove reference to never-defined .isUndefined property
...
This was added in f4a7cca075 to fix #1038
for CoffeeScript 1.0.1. `.isUndefined` was removed in
caf3da2f66 but this code was never
updated. That actually caused the behavior of this code to change
(trailing `undefined` and `return undefined` statements no longer got
optimized away) when CoffeeScript 1.3.2 was released, but the new
behavior was deemed correct in
https://github.com/jashkenas/coffee-script/issues/1038#issuecomment-14427560 .
2014-02-06 09:23:16 -05: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