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 Add a `for .. from ..` loop for generators, see #4306, #3832 (#4355) 2016-11-07 23:40:01 -08:00
assignment.coffee Implement ES2015-like destructuring defaults 2015-08-27 22:16:13 +02:00
booleans.coffee
classes.coffee Fix `isLiteralArguments` 2016-09-26 15:33:44 +02:00
cluster.coffee
comments.coffee Refactor test.html to be part of the docs output, with the tests embedded inside it; update test.html styles; move UTF-8 comment test out of test.html and into test/comments.coffee where it belongs 2016-11-29 18:13:12 -08:00
compilation.coffee Add a `for .. from ..` loop for generators, see #4306, #3832 (#4355) 2016-11-07 23:40:01 -08:00
comprehensions.coffee Allow `@` values as indices in `for` expressions 2016-12-29 19:00:00 +00:00
control_flow.coffee Improve naming of generated 'i-variables' 2016-06-10 08:58:18 +02:00
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 Fix #3935: Implicit calls + obj key interpolation 2015-05-01 12:02:03 +02:00
functions.coffee Refactor `Literal` into several subtypes 2016-03-05 17:08:11 +01:00
generators.coffee Detect when `from` in a `for` loop declaration is an identifier (#4393) 2016-12-06 12:29:02 -08:00
helpers.coffee Replace `last array` helper with `[..., last] = array` 2015-02-07 21:50:41 +01:00
importing.coffee
interpolation.coffee
javascript_literals.coffee Triple backticks to allow creation of JavaScript blocks (#4357) 2016-11-19 11:13:30 -08:00
literate.litcoffee
location.coffee Include generated } tokens when fixing closing token positions 2016-10-30 21:39:54 -07:00
modules.coffee Allow imported module members to be named `default` 2016-12-04 18:44:07 -08:00
numbers.coffee Treat Infinity and NaN as reserved words 2016-03-06 11:41:48 +01:00
objects.coffee Fix shorthands after interpolated key in objects 2016-09-29 19:02:00 +02:00
operators.coffee Fix //= operator (#4410) 2016-12-23 14:37:11 +01:00
option_parser.coffee
parser.coffee Define proper operator precedence for bitwise/logical operators 2016-10-09 14:45:25 -07:00
ranges.coffee Add a `for .. from ..` loop for generators, see #4306, #3832 (#4355) 2016-11-07 23:40:01 -08:00
regexps.coffee
repl.coffee Fix stack trace (#4428) 2017-01-22 13:20:18 -08:00
scope.coffee Add a `for .. from ..` loop for generators, see #4306, #3832 (#4355) 2016-11-07 23:40:01 -08:00
slicing_and_splicing.coffee
soaks.coffee added descriptions to tests which only had Issue numbers 2015-02-23 16:39:05 -07:00
sourcemap.coffee Fix failing source map tests 2016-06-02 09:04:58 +02:00
strict.coffee Fix compiler crash with renamed destrucured params with defaults 2015-09-27 15:54:44 +02:00
strings.coffee Fix indentation-stripping in `"""` strings 2016-09-26 17:14:31 +02:00
tagged_template_literals.coffee Improve tests and comments 2016-12-03 10:16:41 -08:00