Commit Graph

19 Commits

Author SHA1 Message Date
Ash Wilson
dc9fe25255
Wrap temp.cleanupSync() calls in try-catch blocks 2017-08-04 14:18:43 -04:00
Damien Guard
2463739e94
Remove errant stack trace from console 2016-12-01 14:02:11 -08:00
Damien Guard
ff83e59753 Merge pull request #13365 from atom/dg-specs-reliability
Specs: test reliability & auto temp clean-up
2016-12-01 13:24:12 -08:00
Damien Guard
d434d026d3
Correct compile cache afterEach cleanup 2016-12-01 10:49:02 -08:00
Damien Guard
3fd1dbdce3
Clean up temporary files when running specs 2016-12-01 10:48:45 -08:00
Damien Guard
f2b6da332d
Temporarily disable 3 flakey specs on Windows x64 2016-11-30 19:18:26 -08:00
Indrek Ardel
fd1e060592 Use inline source maps for coffeescript 2016-09-30 15:03:04 +03:00
Antonio Scandurra
bdce8d15ab Rely on CSON.readFileSync to test caching behavior 2016-06-17 11:04:08 +02:00
Nathan Sobo
f139992585 Avoid infinite recursion in Error.prepareStackTrace
Previously, prepareStackTraceWithStackAssignment could end up calling
itself when third-party code assigned Error.prepareStackTrace back
to its original value. Now, we short-circuit this process if the
rawStack property has already been assigned.

Signed-off-by: Max Brunsfeld <maxbrunsfeld@github.com>
2015-11-30 10:51:21 -08:00
Max Brunsfeld
4bc46db355 Still assign error's raw stack when prepareStackTrace is overridden
Signed-off-by: Nathan Sobo <nathan@github.com>
2015-11-23 15:30:11 -08:00
Max Brunsfeld
4616b426b0 Allow Error.prepareStackTrace to be temporarily reassigned
Fixes https://github.com/atom/atom/issues/9660

Signed-off-by: Nathan Sobo <nathan@github.com>
2015-11-23 15:22:15 -08:00
Antonio Scandurra
224f2e973f Adhere to CoffeeScript.compile contract
...which always returns the source map as a string. This is needed because
`Buffer` now requires to be initialized with either a number, a buffer, an array
or a string.
2015-10-16 11:08:51 -06:00
Max Brunsfeld
a6fa098a8c Add CompileCache spec 2015-08-21 14:47:32 -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
Basarat Syed
6f1b061dac Added TypeScript to the compile-cache 2015-03-24 18:05:30 +11:00
Kevin Sawicki
25befa7368 Update fixture path in compile cache spec 2015-02-20 15:55:41 -08:00
Kevin Sawicki
631c95643d to5 -> babel 2015-02-20 15:24:21 -08:00
Sebastian McKenzie
52506a0df2 Rename 6to5 to Babel 2015-02-18 12:23:58 +11:00
Kevin Sawicki
20b2be51d9 Add initial compile cache spec 2015-02-12 14:22:46 -08:00