jashkenas--coffeescript/test
Geoffrey Booth 3108244c20 Fix stack trace (#4428)
* Revert aee27fbff0

* Patch Jison’s output so that it requires `fs` only if we’re truly in a CommonJS/Node environment, not a browser environment that may happen to have globals named `require` and `exports` (as would be the case if require.js is being used). Fixes #4391.

* Temporary fix for exceptions getting thrown when trying to generate a stack trace for a file that has been deleted since compilation; fixes #3890, but not well. A better solution would not try to recompile the file when trying to retrieve its stack trace.

* Save the test REPL history in the system temp folder, not in the CoffeeScript project folder

* Rewrite `getSourceMap` to never read a file from disk, and therefore not throw IO-related exceptions; source maps are either retrieved from memory, or the related source code is retrieved from memory to generate a new source map. Fixes #3890 the proper way.

* Add test to verify that stack traces reference the correct line number. Closes #4418.

* Get the parser working in the browser compiler again; rather than detecting a CommonJS environment generally, just check for `fs` before trying to use it

* Follow Node’s standard of 4-space indentation of stack trace data

* Better .gitignore

* Fix caching of compiled code and source maps; add more tests to verify correct line numbers in stack traces

* Better fallback value for the parser source

* Fix the stack traces and tests when running in a browser

* Update the browser compiler so that @murrayju doesn’t have any extra work to do to test this branch
2017-01-22 13:20:18 -08:00
..
importing
support Abstract the `eq` and `arrayEq` functions, shared by Cakefile and test.html, into one file that can be included into both 2016-11-29 21:19:11 -08:00
arrays.coffee
assignment.coffee
booleans.coffee
classes.coffee
cluster.coffee
comments.coffee
compilation.coffee
comprehensions.coffee Allow `@` values as indices in `for` expressions 2016-12-29 19:00:00 +00:00
control_flow.coffee
error_messages.coffee Fix stack trace (#4428) 2017-01-22 13:20:18 -08:00
eval.coffee
exception_handling.coffee
formatting.coffee
function_invocation.coffee
functions.coffee
generators.coffee Detect when `from` in a `for` loop declaration is an identifier (#4393) 2016-12-06 12:29:02 -08:00
helpers.coffee
importing.coffee
interpolation.coffee
javascript_literals.coffee
literate.litcoffee
location.coffee
modules.coffee Allow imported module members to be named `default` 2016-12-04 18:44:07 -08:00
numbers.coffee
objects.coffee
operators.coffee Fix //= operator (#4410) 2016-12-23 14:37:11 +01:00
option_parser.coffee
parser.coffee
ranges.coffee
regexps.coffee
repl.coffee Fix stack trace (#4428) 2017-01-22 13:20:18 -08:00
scope.coffee
slicing_and_splicing.coffee
soaks.coffee
sourcemap.coffee
strict.coffee
strings.coffee
tagged_template_literals.coffee Improve tests and comments 2016-12-03 10:16:41 -08:00