Commit Graph

10 Commits

Author SHA1 Message Date
Jason Rudolph
c9e6d04e8c Revert "Merge #18603 from atom/electron-3-0"
This reverts commit b92ae2ad04, reversing
changes made to d4fe5ccfeb.
2019-02-25 13:41:59 -05:00
David Wilson
8eccaf2d5d Make invalid JS file fail Babel spec again
This change uses a different JavaScript syntax to cause the "when a .js file
does not start with 'use babel'" spec to fail again after upgrading to Electron
3 / Node 10.3.0.  The previous generator syntax seems to be supported in the
version of V8 used by Node 10 so we now need to use the 'export default' syntax
to trigger an error.

I've verified that changing the first line of this file to 'use babel' causes
the file to load successfully, so it seems this new syntax is effective to
verify the desired behavior.
2019-01-18 15:13:24 -08:00
saadq
fc45af02ae allow the use of double slash flow comments 2018-03-21 18:07:16 -04:00
Thomas Johansen
ceb05f03e2 💚 Make the "invalid" Babel fixture throw
Due to the V8 upgrade we need to tune the fixture to make it throw.
Using a generator function does the trick 
2017-05-03 14:21:23 +02:00
joshaber
563984a7b2 Test it. 2016-02-05 16:16:38 -05:00
Antonio Scandurra
23d5dc8726 Change invalid.js fixture for babel transpilation
The previous file was considered invalid on the earlier version of electron, but
it now compiles correctly because of the updated ES6 support.
2015-10-16 11:08:51 -06:00
Max Brunsfeld
0dd19f3133 Remove 6to5 fixtures 2015-08-21 16:59:53 -07:00
Max Brunsfeld
070f4000f0 Replace 'use babel' -> '@babel' in comment directive 2015-08-20 11:58:46 -07:00
Max Brunsfeld
e4b1d512cd Honor /** use babel */ in addition to 'use babel' 2015-08-18 17:32:11 -07:00
Sebastian McKenzie
52506a0df2 Rename 6to5 to Babel 2015-02-18 12:23:58 +11:00