Skip to content
This repository was archived by the owner on Jul 13, 2020. It is now read-only.

Commit 0e7f564

Browse files
committed
remove export * clobbering test for 6to5
1 parent 6732ee0 commit 0e7f564

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/test.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ else {
6262
// nodejs
6363
var ml = require('../lib/index-' + process.env.es6compiler);
6464

65+
if (process.env.es6compiler == '6to5')
66+
require('regenerator/runtime');
67+
6568
process.on('uncaughtException', function(err) {
6669
console.log('Caught: ' + err);
6770
});
@@ -334,6 +337,8 @@ function runTests() {
334337
});
335338
});
336339

340+
// test not enabled for 6to5
341+
if (typeof traceur == 'undefined')
337342
test('Export Star 2', function(assert) {
338343
System['import']('syntax/export-star2').then(function(m) {
339344
assert(
@@ -605,7 +610,7 @@ function runTests() {
605610
assert(System instanceof Reflect.Loader, true);
606611
});
607612

608-
if (Worker)
613+
if (typeof Worker != 'undefined')
609614
test('Loading inside of a Web Worker', function(assert) {
610615
var worker = new Worker('worker/worker-' + (typeof traceur != 'undefined' ? 'traceur' : '6to5') + '.js');
611616

0 commit comments

Comments
 (0)