Max Brunsfeld
e5c9a67056
Add a comment explaining why there's no es6 in compile-cache.js
2015-12-10 10:00:43 -08:00
Max Brunsfeld
5a6fd06386
There is no ES6 in compile-cache.js
2015-12-10 09:51:53 -08:00
Nathan Sobo
3567d47790
Merge pull request #9878 from atom/ns-mb-fix-prepare-stack-trace-recursion
...
Avoid infinite recursion in Error.prepareStackTrace
2015-12-08 14:22:07 -07:00
Nathan Sobo
7718d5cb56
Merge pull request #9773 from atom/mb-ns-prepare-stack-trace-fixes
...
Allow Error.prepareStackTrace to be temporarily reassigned
2015-12-08 14:21:47 -07:00
Nathan Sobo
4f9e1a8ca3
Increase stack trace size limit to 30
2015-12-07 14:25:11 -07:00
Max Brunsfeld
f31328baec
Disable linter warning for Error prototype method
2015-10-16 16:25:45 -07:00
Max Brunsfeld
c36b4bd169
Make Error.prepareStackTrace read-only (again)
...
This time, we've provided a way for Grim to access an Error's
raw stack trace array
2015-10-16 16:25:45 -07:00
Max Brunsfeld
d9410716d2
Don't attempt to use source maps w/ no cache directory
...
This error will only happen when the compile-cache file is compiled
twice, which seems to be happening on windows when running specs.
This doesn't fix that problem, but prevents further errors from
cascading in a confusing way.
2015-09-01 16:49:15 -07:00
Kevin Sawicki
56f40d7714
Append to existing cache dir value
2015-08-31 10:29:36 -07:00
Kevin Sawicki
8fa99a33be
Append root to atom home value
2015-08-31 10:23:14 -07:00
Max Brunsfeld
a4b9b9c6cd
👕 Use standard style for js code
2015-08-21 16:56:32 -07:00
Max Brunsfeld
f3778148a0
Catch errors when retrieving source maps
2015-08-21 15:37:36 -07:00
Max Brunsfeld
a18b7e2fa9
Don't make prepareStackTrace unwritable
...
This breaks other code (such as Grim) that may want to temporarily
use a different prepareStackTrace function.
2015-08-21 14:57:39 -07:00
Max Brunsfeld
a6fa098a8c
Add CompileCache spec
2015-08-21 14:47:32 -07:00
Max Brunsfeld
f8397661d1
Defer coffee-script require, prevent it from reassigning prepareStackTrace
2015-08-21 13:48:56 -07:00
Max Brunsfeld
b533aff8f4
🐎 Minimize dependencies loaded before the module-cache
2015-08-21 13:48:56 -07:00
Max Brunsfeld
bb69f1352d
🎨
2015-08-21 11:50:54 -07:00
Max Brunsfeld
408202729e
Add sourceURL comment to all compiled js files
2015-08-21 11:19:11 -07:00
Max Brunsfeld
8c5eed28d2
Don't use es6 features in compile-cache
...
APM requires it directly, and it uses an older version of node
2015-08-21 10:31:29 -07:00
Nathan Sobo
c0f3ca6dcd
Fix inline source map regex
...
Need to enable multi-line mode after all
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com >
2015-08-20 16:08:03 -06:00
Nathan Sobo
61ef1da815
🎨
...
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com >
2015-08-20 16:07:37 -06:00
Max Brunsfeld
973c2a6a18
Don't match newlines when finding source-map data
2015-08-20 11:58:46 -07:00
Max Brunsfeld
49e37f5410
Use source-map-support to handle stack trace conversion
...
Previously, our Error.convertStackTrace function was provided by coffeestack,
which only works for coffee-script. This adds a dependency on 'source-map-support',
which works for any source file with inline source maps.
This also refactors the code for registering our compilers (coffee-script,
typescript, and babel) so that caching logic is shared.
2015-08-19 17:55:29 -07:00