Jeremy Ashkenas
66716cd730
Merge pull request #4071 from lydell/lone-expansion
...
Fix #4070 : Improve error message for lone expansion
2015-08-27 13:09:54 -04:00
Simon Lydell
f588ecb288
Fix #4070 : Improve error message for lone expansion
2015-08-26 22:30:55 +02:00
Michael Ficarra
dc3e177811
Merge pull request #4068 from lydell/issue-1192
...
Fix #1192 : Assignment starting with object literals
2015-08-22 07:24:23 -07:00
Simon Lydell
2eef667916
Fix #1192 : Assignment starting with object literals
2015-08-22 16:21:35 +02:00
Jeremy Ashkenas
617a932e89
Merge pull request #4059 from BrunoBernardino/hotfix/4036-try-variable-improvement
...
Closes #4036 : "Try catch" optimisation
2015-08-19 14:33:11 -04:00
Bruno Bernardino
beac56d4d5
Updated compile
2015-08-16 21:34:22 +01:00
Bruno Bernardino
cc98e99070
Removing unnecessary assignment
2015-08-16 21:33:58 +01:00
Bruno Bernardino
93e4eeafed
Removing the unnecessary underscore now :)
2015-08-16 21:32:16 +01:00
Bruno Bernardino
efdc67241a
Improved the tests and removed the hardcoded variable, according to suggestions.
2015-08-16 21:27:28 +01:00
Bruno Bernardino
24e8f1c98f
Closes #4036 : "Try catch" optimisation
...
Let me know if there's something I should be doing differently as this is my first contribution to coffeescript.
I fixed the reported issue where a generated variable could clash with a user-defined one in a try/catch block.
I added a test for a few scenarios with different variable names for a try/catch, to confirm the fix and avoid regressions.
2015-08-16 20:47:04 +01:00
Michael Ficarra
2d1a6fa6ec
Merge pull request #4029 from yjerem/reset-seenfor
...
Reset @seenFor in lexer before tokenizing
2015-07-07 21:31:23 -07:00
Jeremy Ruten
3d7d68a766
Reset @seenFor in lexer before tokenizing
2015-07-07 22:23:26 -06:00
Michael Ficarra
342b395b0a
Merge pull request #4019 from rvagg/master
...
Don't copy arguments or caller from require
2015-06-22 06:33:07 -07:00
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