From 428b16e69351faa22ea51cd6188d14f705968103 Mon Sep 17 00:00:00 2001 From: guybedford Date: Fri, 3 Jun 2016 00:59:50 +0200 Subject: [PATCH] fix scriptLoad test in Node --- test/test.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/test.js b/test/test.js index 8706b1f4c..f93b029b1 100644 --- a/test/test.js +++ b/test/test.js @@ -983,14 +983,15 @@ asyncTest('Scriptload precompiled global with exports still defined', function() meta: { 'tests/global-single-compiled.js': { scriptLoad: true, - exports: 'foobar' + exports: 'foobar', + format: typeof global != 'undefined' ? 'register' : 'global' } } }); System['import']('tests/global-single-compiled.js').then(function(m) { ok(m == 'foo'); start(); - }); + }, err); }); asyncTest('Multi-format deps meta', function() {