Rod Vagg
75ae45e2bb
don't copy arguments or caller from require
...
causes an error in io.js where strict-mode is set on internal modules
Fixes: https://github.com/jashkenas/coffeescript/issues/3810
2015-06-22 22:51:39 +10:00
Michael Ficarra
1f197fcc1b
Merge pull request #3985 from ide/array-check
...
Replace "instanceof Array" in transformer with "[object Array]" comparison
2015-06-05 09:40:02 -07:00
Jeremy Ashkenas
e339f5f2da
correct release date
2015-05-27 13:04:12 -04:00
Jeremy Ashkenas
c37f284771
redoc
1.9.3
2015-05-27 11:57:31 -04:00
Jeremy Ashkenas
585298dc17
Merge pull request #3980 from lydell/v1.9.3
...
CoffeeScript 1.9.3
2015-05-27 11:51:32 -04:00
James Ide
2087923163
Replace "instanceof Array" in transformer with "[object Array]" comparison
...
Testing with `'[object Array]' is Object::toString.call element` allows arrays from another JS context to be properly handled. The specific use case here is to support jest, which sets up JS contexts using Node/io.js's "vm" module. This approach works in ES3 environments in contrast with ES5's `Array.isArray`.
2015-05-20 21:06:36 -07:00
Simon Lydell
b58772e8a7
CoffeeScript 1.9.3
2015-05-14 11:24:39 +02:00
Michael Ficarra
769f02ec05
Merge pull request #3979 from lydell/herecomments-formatting
...
Fix formatting of `#`-only lines in herecomments
2015-05-13 09:02:34 -07:00
Simon Lydell
52b1749d57
Fix formatting of #-only lines in herecomments
...
Before:
$ ./bin/coffee -bpe '###
> # paragraph 1
> #
> # paragraph 2
> ###'
/*
* paragraph 1
#
* paragraph 2
*/
After:
$ ./bin/coffee -bpe '###
# paragraph 1
#
# paragraph 2
###'
/*
* paragraph 1
*
* paragraph 2
*/
This does not re-break #3638 :
$ ./bin/coffee -bpe '###
> #/
> ###'
/*
#/
*/
2015-05-13 17:50:09 +02:00
Simon Lydell
ba85a38cb0
Commit compiled code that should have been in commit 378a04e4
2015-05-13 17:50:02 +02:00
Michael Ficarra
c0d44b1abd
Merge pull request #3966 from davidbau/simplesourcemaps
...
Fix #3965 , sourcemaps for bare programs.
2015-05-08 07:52:58 -07:00
Michael Ficarra
0262322400
Merge pull request #3974 from carlsmith/issue3958
...
Improved try/catch/finally to explain the options better.
2015-05-02 09:06:49 -07:00
Carl Smith
8e8f6d13bd
Improved try/catch/finally to explain the options better.
2015-05-01 22:38:25 +01:00
Michael Ficarra
b6667f0735
Merge pull request #3970 from lydell/docs
...
Document a few undocumented things
2015-05-01 08:12:53 -07:00
Simon Lydell
99ea1c7a39
Document a for [b..c]
2015-05-01 17:01:05 +02:00
Simon Lydell
27fd65390a
Document yield from and yield return
...
Fixes #3825 .
2015-05-01 17:01:05 +02:00
Simon Lydell
79a6d89849
Document interpolation in object keys
...
Fixes #3962 .
2015-05-01 17:01:05 +02:00
Simon Lydell
6fb5833843
Improve modulo documentation
...
Fixes #3959 .
2015-05-01 17:00:58 +02:00
Simon Lydell
5494ac13ee
Document extra try/catch features
...
Fixes #3958 .
2015-05-01 16:59:34 +02:00
Michael Ficarra
300faf401c
Merge pull request #3968 from lydell/nodes-tokens-errors
...
Fix `CoffeeScript.nodes(tokens)`; fix the repl
2015-05-01 07:51:17 -07:00
Michael Ficarra
f2c6066103
Merge pull request #3967 from lydell/implicit-call-implicit-obj
...
Fix #3935 : Implicit calls + obj key interpolation
2015-05-01 07:48:59 -07:00
Michael Ficarra
2a5320fd2b
Merge pull request #3969 from lydell/alias-origin
...
Save alias names in the origin of tokens
2015-05-01 07:41:14 -07:00
Simon Lydell
36695540fc
Save alias names in the origin of tokens
...
... and use it for "reserved word can't be assigned" errors. Fixes #2306 .
2015-05-01 14:33:11 +02:00
Simon Lydell
fc0c4fdd5f
Fix CoffeeScript.nodes(tokens); fix the repl
...
If you passed an array of tokens (as opposed to a string of code) to
`CoffeeScript.nodes`, its attempts to prettify error messages would break. Now
it does not attempt to prettify error messages in that case anymore (because it
is not possible to prettify the errors without a string of code).
The repl was affected by the above bug.
Fixes #3887 .
2015-05-01 13:43:04 +02:00
Simon Lydell
ebc172d1ee
Fix #3935 : Implicit calls + obj key interpolation
...
Allow implicit calls when the first key of an implicit object has interpolation.
2015-05-01 12:02:03 +02:00
Simon Lydell
4e6b6678f7
Add tests for implicit calls with implicit object
2015-05-01 11:53:37 +02:00
David Bau
378a04e48c
Fix #3965 , sourcemaps for bare programs.
...
Instead of mapping all generated spaces and semicolons and newlines
to the source position (0,0), we avoid generating sourcemap information
for generated space-or-semicolon-only fragments.
(In addition to shortening sourcemaps, this fixes a correctness issue
where an empty fragment at the beginning of each line maps from (0,0),
but in a bare program, that position at the begining of the line
should map from the actual source line. When this conflict occurred,
(0,0) would win, resulting in an incorrect sourcemap, where each
top-level function call mapped to (0,0).)
2015-04-30 22:08:26 -04:00
Michael Ficarra
1e62781759
Merge pull request #3953 from sixmen/fix_repl_fd_leak
...
fix history file descriptor leak
2015-04-23 06:46:50 -07:00
Michael Ficarra
234adef20c
Merge pull request #3952 from sixmen/fix_write_after_fin
...
fix write after FIN error when using repl via socket
2015-04-23 06:45:04 -07:00
Sangmin Yoon
8b463cd3ad
fix history file descriptor leak
2015-04-22 15:26:44 +09:00
Sangmin Yoon
ce10a463f3
fix write after FIN error when using repl via socket
...
if repl.outputStream is a socket, it is closed when 'exit' event
occurred, so write throws an exception
2015-04-22 15:11:56 +09:00
Jeremy Ashkenas
140a73dca7
adding new packt book at their request
2015-04-15 12:03:22 -04:00
Jeremy Ashkenas
46d16b5c49
#3942 -- revising changelog
1.9.2
2015-04-15 11:49:14 -04:00
Jeremy Ashkenas
d16cf19c15
Merge pull request #3942 from alubbe/master
...
1.9.2
2015-04-15 11:44:48 -04:00
Andreas Lubbe
edbb9a77e7
build & docs for 1.9.2
2015-04-15 17:26:30 +02:00
Andreas Lubbe
cc4c3b2606
added 1.9.2 changelog
2015-04-15 17:26:06 +02:00
Andreas Lubbe
3a2888f97a
bumped version to 1.9.2
2015-04-15 17:25:49 +02:00
Jeremy Ashkenas
bd17cc9b3c
Merge pull request #3892 from matthieubulte/master
...
Added checking on process.stdout to be compatible with browserify
2015-03-09 09:42:27 -04:00
Jeremy Ashkenas
0a3e3639dc
Merge pull request #3706 from imcotton/script-data-src
...
Optionally to read data-src out from <script>
2015-03-09 09:41:32 -04:00
Cotton Hou
008bacf5d5
add compiled lib/browser.js
2015-03-09 15:59:10 +08:00
Cotton Hou
cc1b056b03
optionally to read data-src out from <script>
2015-03-09 15:37:09 +08:00
Matthieu Bulté
3548b4883e
Added checking on process.stdout to be compatible with browserify
2015-03-09 08:30:01 +01:00
Michael Ficarra
37a376497c
Merge pull request #3893 from josh/escape-literal-bracket-regexp
...
Escape literal ] in regexp
2015-03-08 22:18:16 -07:00
Joshua Peek
83744917b0
Escape literal ] in REGEX
...
] is not allowed in the PatternCharacter set
2015-03-08 21:59:09 -07:00
Jeremy Ashkenas
a548b70e8c
Merge pull request #3661 from dtaniwaki/fix-deprecated-option
...
Use stdio option instead of customFds
2015-03-06 09:58:33 -05:00
Jeremy Ashkenas
c8147c046a
Reverts #3758 , Fixes #3863 -- kills the broken warning
2015-03-03 14:30:52 -05:00
Jeremy Ashkenas
4a7497b451
Merge pull request #3886 from jashkenas/revert-3885-escape-literal-bracket-regexp
...
Revert "Escape literal [ in regexp"
2015-02-26 16:05:25 -05:00
Jeremy Ashkenas
06aa329596
Revert "Escape literal [ in regexp"
2015-02-26 16:05:12 -05:00
Jeremy Ashkenas
9becb0e937
Merge pull request #3885 from josh/escape-literal-bracket-regexp
...
Escape literal [ in regexp
2015-02-26 14:49:24 -05:00
Joshua Peek
7f7765546f
Escape literal [ in regexp
...
Improves compatibility with strict ES5 regexp syntax
2015-02-26 12:37:27 -06:00