Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion Cakefile
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ runTests = (CoffeeScript) ->

# End Iced additions
# ----

helpers.extend global, require './test/support/helpers'

# When all the tests have run, collect and print errors.
Expand Down Expand Up @@ -519,6 +519,10 @@ task 'test:browser', 'run the test suite against the merged browser script', ->
result = {}
global.testingBrowser = yes
(-> eval source).call result
# When testing browser build, install custom prepareStackTrace handler instead
# of source-map-support. `CoffeeScript.run` is pulled from `browser.coffee` in
# browser build, and it's incompatible with our source-map-support hooks.
result.CoffeeScript.installPrepareStackTrace()
testResults = runTests result.CoffeeScript

task 'check_version', 'Check version between package.json and version compiled in', ->
Expand Down
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,27 @@ For documentation, usage, and examples, see: http://coffeescript.org/
To suggest a feature or report a bug: http://github.com/maxtaco/coffeescript/issues

The source repository: https://github.com/maxtaco/coffeescript.git

## Note about `source-map-support`

Since v112.8.1 (2019-12-20), IcedCoffeeScript v3 uses `source-map-support`
package to handle location mapping for stack traces for errors coming from
IcedCoffeeScript code. It's enabled by default when using `iced3` to run scripts
or when using `register` to enable IcedCoffeeScript in Node's module system.

To enable it manually (e.g. in environments other than Node.js or when not
using `register`), use the following API:

```
require('iced-coffee-script-3').installSourceMapSupport({})
```

This function can also be called with options for `source-map-support` instead
of an empty object. Available options are described in `source-map-support`
README file.

To use the old error handler, use the following API instead:

```
require('iced-coffee-script-3').installPrepareStackTrace()
```
801 changes: 402 additions & 399 deletions docs/v1/browser-compiler/iced-coffee-script.js

Large diffs are not rendered by default.

Loading