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
104b4666fe
Fix indendation error messages
2014-01-26 05:25:13 +00:00
xixixao
f0463e9981
Improve error messages for generated tokens
2014-01-22 02:54:09 +00:00
Michael Ficarra
08a57898a7
add CoffeeScript.register method for require.extensions registration
2013-12-08 14:21:18 -06:00
Jeremy Ashkenas
a5513c45d0
Fixes #3047 -- Fixes module.paths when running directly with no explicit passed-in files.
2013-10-20 17:50:13 -03:00
Jeremy Ashkenas
d5a25d138d
Fixes #3089 -- don't mutate options passed in to compile()
2013-10-20 16:21:06 -03:00
Jeremy Ashkenas
b173a377a6
Fixes #3208 . You now have to require 'coffee-script/extensions' in order to be able to auto-require CoffeeScript files.
2013-10-20 11:08:13 -03:00
Mal Graty
a8e4b78803
Fixes #3186
2013-09-29 15:28:58 +01:00
Jason Walton
3ad332d5d4
Issue #3092 : Fix column numbers in sourcemaps to not be essentially random.
2013-08-06 16:25:23 -04:00
Mal Graty
3c2f0d174e
Use coffee binary of coffee that overrode fork
...
This solves two potential problems when it comes to forking:
1) Forking will now work correctly even when `coffee` is not installed
globally.
2) Forking when using a locally installed version of `coffee` will fork
using that version, and not fallback to a globally installed version.
Fixes #2957
2013-08-02 23:10:45 +01:00
Demian Ferreiro
9e716b310d
Avoid using a getter for the compiler error's "stack" property
...
Instead, set the "stack" property manually when the error gets updated on re-throws.
2013-08-02 01:52:36 -03:00
Demian Ferreiro
3f9cdcf1fa
Change how error messages are shown
...
Instead of throwing the syntax errors with their source file location and needing to then catch them and call a `prettyErrorMessage` function in order to get the formatted error message, now syntax errors know how to pretty-print themselves (their `toString` method gets overridden).
An intermediate `catch` & re-`throw` is needed at the level of `CoffeeScript.compile` and friends. But the benefit of this approach is that now libraries that use the `CoffeeScript` object directly don't need to bother catching the possible compilation errors and calling a special function in order to get the nice error messages; they can just print the error itself (or let it bubble up) and the error will know how to pretty-print itself.
2013-07-31 08:27:49 -03:00
Demian Ferreiro
51c625205b
Update compiled JS
2013-07-30 01:06:41 -03:00
Demian Ferreiro
3c880bf601
Move a try/catch from compile to loadFile
...
This try/catch should only be necessary for dynamically loaded files. Also added a lengthier explanation of why this try/catch is needed.
2013-06-09 02:54:34 -03:00
Demian Ferreiro
8e90aaefc1
Merge branch 'master' into issue2849
...
Conflicts:
lib/coffee-script/coffee-script.js
src/coffee-script.coffee
2013-06-09 02:40:53 -03:00
Jeremy Ashkenas
84b8b5ccee
CoffeeScript 1.6.3
2013-06-02 09:37:45 +04:00
Jeremy Ashkenas
3298c9caad
merge
2013-06-02 09:10:16 +04:00
Jeremy Ashkenas
7089b02a74
Merging in a monkey-patching of Module::load, unfortunately.
2013-06-02 09:03:54 +04:00
Sam Gentle
012e3c019c
fix style problems part 3
2013-05-26 15:59:49 +10:00
Sam Gentle
30b2af820a
Early exit + refactor findExtension
2013-05-26 02:17:34 +10:00
Sam Gentle
2fd956d8d4
fix style problems
2013-05-26 00:10:07 +10:00
Sam Gentle
d46a44ac48
Patch node module loader to handle multiple extensions - fixes #2928 & #2855
2013-05-25 23:22:27 +10:00
In-Ho Yi
b54db2ea07
keep track of source map information for require()d coffee files
2013-04-29 17:06:22 +10:00
Nami-Doc
7be996c010
code cleanup
2013-04-28 00:56:44 +02:00
Michal Srb
7b9699c5fa
Fix #1437 . Unneeded ref in existential assignment.
2013-04-22 21:58:49 +02:00
Nami-Doc
53a5f26430
fix #2846
2013-03-25 18:56:24 +01:00
Demian Ferreiro
67fd84fc1d
Fixes #2849 : now the compilation errors thrown by CoffeeScript.compile will include the correct filename and source code information
2013-03-19 04:27:34 -03:00
Jeremy Ashkenas
6786bab2ba
Big refactor of SourceMap class. Literate CoffeeScript. Purdy.
2013-03-18 19:23:05 +08:00
Jeremy Ashkenas
566a7dabb2
Fixing erroneous whitespace fix in generated JS
2013-03-18 17:47:55 +08:00
Jeremy Ashkenas
a3e8de338a
CoffeeScript 1.6.2
2013-03-18 13:06:33 +08:00
Jeremy Ashkenas
4f815ea978
Fixes #2737 , fix fork() for both .js and .coffee, revised.
2013-03-18 11:46:54 +08:00
Hao-kang Den
5fb047930e
fixed lineno
2013-03-18 09:31:12 +08:00
Hao-kang Den
c24e957f17
use btoa as base64 encoder, inspired by @ashtuchkin
2013-03-18 09:31:12 +08:00
Hao-kang Den
d4254a40a9
Apply modifications by @jwalton
2013-03-14 08:36:07 +08:00
Hao-kang Den
052e3cc8eb
found a linear shift of lineno, dirty patch for now
...
It seems that js -> coffee line mapping has a linear shifting.
Dirty patch by applying linear correction.
Dumb, but maybe a hint.
2013-03-14 08:36:07 +08:00
Hao-kang Den
7d08dbb86c
build
2013-03-13 16:00:57 +08:00
Hao-kang Den
d3263dc35b
fix node v0.10 path
2013-03-12 20:53:13 +08:00
Hao-kang Den
9b6772a390
accept override
2013-03-12 15:29:13 +08:00
Hao-kang Den
b7f0653a0e
port patchStackTrace from Redux
2013-03-12 15:29:13 +08:00
Demian Ferreiro
f0fcf4aee0
Merge branch 'master' of git://github.com/jashkenas/coffee-script into improved-error-messages
...
Conflicts:
lib/coffee-script/coffee-script.js
lib/coffee-script/command.js
lib/coffee-script/helpers.js
lib/coffee-script/lexer.js
lib/coffee-script/nodes.js
lib/coffee-script/repl.js
src/coffee-script.coffee
src/command.coffee
src/helpers.coffee
src/lexer.coffee
src/nodes.coffee
test/helpers.coffee
2013-03-10 20:29:36 -03:00
Demian Ferreiro
09f8df9640
Add check for end of input on parseError handler
2013-03-10 00:30:27 -03:00
Jason Walton
f85d19b459
Rework API for sourcemap filenames and paths.
2013-03-07 21:26:09 -05:00
Jason Walton
ce6772f2be
Better fix for sourceRoot and relative path for .coffee files in source maps.
2013-03-06 15:45:47 -05:00
Jason Walton
d6e1a979e4
Fix sourceRoot and relative path for .coffee files in generated source maps.
2013-03-06 11:05:57 -05:00
Demian Ferreiro
5da7f6a488
Get rid of CompilationError and instead have a couple of functions on helpers.coffee
2013-03-05 01:13:46 -03:00
Jeremy Ashkenas
f8c6b494aa
Fixes #2422 -- Catch clause scoping plus old IE
2013-03-05 16:13:22 +13:00
Demian Ferreiro
b400047045
Merge branch 'master' of git://github.com/jashkenas/coffee-script into improved-error-messages
...
Conflicts:
Cakefile
lib/coffee-script/coffee-script.js
lib/coffee-script/command.js
lib/coffee-script/nodes.js
lib/coffee-script/repl.js
src/coffee-script.coffee
src/helpers.coffee
src/nodes.coffee
src/repl.coffee
2013-03-04 23:42:47 -03:00
Jason Walton
2684737b66
Move sourceMappingURL line to bottom of file
2013-03-04 18:43:49 -05:00
Jeremy Ashkenas
eef83a9fcb
CoffeeScript 1.6.1
2013-03-05 11:07:16 +13:00