From 25ed8dbea9714bfa076c8b0f4b68cd25a18d57d2 Mon Sep 17 00:00:00 2001 From: Ingvar Stepanyan Date: Thu, 20 Nov 2014 01:33:47 +0200 Subject: [PATCH] Update tests. --- .../a (exports A with externals)/expected.js | 25 ++++++++++--------- .../expected.js.map | 2 +- .../expected.js | 23 +++++++++-------- .../expected.js.map | 2 +- .../suites/a (exports A with map)/expected.js | 21 ++++++++-------- .../a (exports A with map)/expected.js.map | 2 +- test/suites/a (exports A)/expected.js | 21 ++++++++-------- test/suites/c (no exports)/expected.js | 15 +++++------ 8 files changed, 58 insertions(+), 53 deletions(-) diff --git a/test/suites/a (exports A with externals)/expected.js b/test/suites/a (exports A with externals)/expected.js index c418880..144c61e 100644 --- a/test/suites/a (exports A with externals)/expected.js +++ b/test/suites/a (exports A with externals)/expected.js @@ -1,9 +1,9 @@ -(function (name, factory) { +(function (factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. define([ 'davy', - undefined + '' ], factory); } else if (typeof exports === 'object') { // Node. Does not work with strict CommonJS, but @@ -11,26 +11,27 @@ // like Node. module.exports = factory(require('davy'), require('url')); } else { - // Browser globals (root is window) - this[name] = factory(this.davy, undefined); + // Browser globals + this.A = factory(davy, undefined); } -}('A', function (__external_davy, __external_url, define) { - function _require(index) { - var module = _require.cache[index]; +}(function (__external_davy, __external_url) { + var global = this, define; + function _require(id) { + var module = _require.cache[id]; if (!module) { var exports = {}; - module = _require.cache[index] = { - id: index, + module = _require.cache[id] = { + id: id, exports: exports }; - _require.modules[index].call(exports, module, exports); + _require.modules[id].call(exports, module, exports); } return module.exports; } _require.cache = []; _require.modules = [ function (module, exports) { - return __external_davy; + module.exports = __external_davy; }, function (module, exports) { // License of a @@ -51,7 +52,7 @@ module.exports = { 'answer': 42 }; }, function (module, exports) { - return __external_url; + module.exports = __external_url; } ]; return _require(1); diff --git a/test/suites/a (exports A with externals)/expected.js.map b/test/suites/a (exports A with externals)/expected.js.map index 11861fe..7dbac14 100644 --- a/test/suites/a (exports A with externals)/expected.js.map +++ b/test/suites/a (exports A with externals)/expected.js.map @@ -1 +1 @@ -{"version":3,"sources":["umdWrapper.js","preamble.js","fixtures/a.js","fixtures/b/index.js","fixtures/c.js","fixtures/data.json"],"names":["name","factory","define","amd","exports","module","_require","index","cache","id","modules","call","c","url","Promise","topValue","expectedValue","answer","value","a"],"mappings":"CACC,UAAUA,IAAV,EAAgBC,OAAhB,EAAyB;AAAA,IACtB,IAAI,OAAOC,MAAP,KAAkB,UAAlB,IAAgCA,MAAA,CAAOC,GAA3C,EAAgD;AAAA,QAE5C;AAAA,QAAAD,MAAA,CAAO;AAAA,Y,MAAA;AAAA,Y,SAAA;AAAA,SAAP,EAAyBD,OAAzB,EAF4C;AAAA,KAAhD,MAGO,IAAI,OAAOG,OAAP,KAAmB,QAAvB,EAAiC;AAAA,QAIpC;AAAA;AAAA;AAAA,QAAAC,MAAA,CAAOD,OAAP,GAAiBH,OAAA,C,eAAA,E,cAAA,CAAjB,CAJoC;AAAA,KAAjC,MAKA;AAAA,QAEH;AAAA,aAAKD,IAAL,IAAaC,OAAA,C,SAAA,E,SAAA,CAAb,CAFG;AAAA,KATe;AAAA,C,MCDzB,U,eAAA,E,cAAA,EAA0BC,MAA1B,EAAkC;AAAA,IAClC,SAASI,QAAT,CAAkBC,KAAlB,EAAyB;AAAA,QACxB,IAAIF,MAAA,GAASC,QAAA,CAASE,KAAT,CAAeD,KAAf,CAAb,CADwB;AAAA,QAGxB,IAAI,CAACF,MAAL,EAAa;AAAA,YACZ,IAAID,OAAA,GAAU,EAAd,CADY;AAAA,YAEZC,MAAA,GAASC,QAAA,CAASE,KAAT,CAAeD,KAAf,IAAwB;AAAA,gBAACE,EAAA,EAAIF,KAAL;AAAA,gBAAYH,OAAA,EAASA,OAArB;AAAA,aAAjC,CAFY;AAAA,YAGZE,QAAA,CAASI,OAAT,CAAiBH,KAAjB,EAAwBI,IAAxB,CAA6BP,OAA7B,EAAsCC,MAAtC,EAA8CD,OAA9C,EAHY;AAAA,SAHW;AAAA,QASxB,OAAOC,MAAA,CAAOD,OAAd,CATwB;AAAA,KADS;AAAA,IAalCE,QAAA,CAASE,KAAT,GAAiB,EAAjB,CAbkC;AAAA,IAclCF,QAAA,CAASI,OAAT,GAAmB;AAAA,Q;;SAAA;AAAA,Q;YCZpB;AAAA,gBAAIE,CAAA,GAAIN,QAAA,CAAQ,CAAR,CAAR,EACCO,GAAA,GAAMP,QAAA,CAAQ,CAAR,CADP,EAECQ,OAAA,GAAUR,QAAA,CAAQ,CAAR,CAFX,C;YAIA,KAAKS,QAAL,GAAgBT,QAAA,CAAQ,CAAR,IAAiB,CAAjC,C;YACA,KAAKU,aAAL,GAAqBV,QAAA,CAAQ,CAAR,EAAuBW,MAA5C,C;SDOoB;AAAA,Q;YEZpB;AAAA,YAAAZ,MAAA,CAAOD,OAAP,GAAiBE,QAAA,CAAQ,CAAR,EAAgBY,KAAhB,GAAwB,CAAzC,C;SFYoB;AAAA,Q;YGZpB;AAAA,gBAAIC,CAAA,GAAIb,QAAA,CAAQ,CAAR,CAAR,C;YACAF,OAAA,CAAQc,KAAR,GAAgB,CAAhB,C;SHWoB;AAAA,Q;YIdpBb,MAAA,CAAOD,OAAP,GAAiB,EAChB,UAAU,EADM,EAAjB,C;SJcoB;AAAA,Q;;SAAA;AAAA,KAAnB,CAdkC;AAAA,IAgBlC,OAAOE,QAAA,C,CAAA,CAAP,CAhBkC;AAAA,C"} \ No newline at end of file +{"version":3,"sources":["fixtures/a.js","fixtures/b/index.js","fixtures/c.js","fixtures/data.json"],"names":["c","_require","url","Promise","topValue","expectedValue","answer","module","exports","value","a"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAEA;AAAA,gBAAIA,CAAA,GAAIC,QAAA,CAAQ,CAAR,CAAR,EACCC,GAAA,GAAMD,QAAA,CAAQ,CAAR,CADP,EAECE,OAAA,GAAUF,QAAA,CAAQ,CAAR,CAFX,C;YAIA,KAAKG,QAAL,GAAgBH,QAAA,CAAQ,CAAR,IAAiB,CAAjC,C;YACA,KAAKI,aAAL,GAAqBJ,QAAA,CAAQ,CAAR,EAAuBK,MAA5C,C;;;YCLA;AAAA,YAAAC,MAAA,CAAOC,OAAP,GAAiBP,QAAA,CAAQ,CAAR,EAAgBQ,KAAhB,GAAwB,CAAzC,C;;;YCAA;AAAA,gBAAIC,CAAA,GAAIT,QAAA,CAAQ,CAAR,CAAR,C;YACAO,OAAA,CAAQC,KAAR,GAAgB,CAAhB,C;;;YCHAF,MAAA,CAAOC,OAAP,GAAiB,EAChB,UAAU,EADM,EAAjB,C"} \ No newline at end of file diff --git a/test/suites/a (exports A with map and comments)/expected.js b/test/suites/a (exports A with map and comments)/expected.js index 77b3570..bf53346 100644 --- a/test/suites/a (exports A with map and comments)/expected.js +++ b/test/suites/a (exports A with map and comments)/expected.js @@ -1,26 +1,27 @@ -(function (name, factory) { +(function (factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define([undefined], factory); + define([''], factory); } else if (typeof exports === 'object') { // Node. Does not work with strict CommonJS, but // only CommonJS-like enviroments that support module.exports, // like Node. module.exports = factory(require('url')); } else { - // Browser globals (root is window) - this[name] = factory(undefined); + // Browser globals + this.A = factory(undefined); } -}('A', function (__external_url, define) { - function _require(index) { - var module = _require.cache[index]; +}(function (__external_url) { + var global = this, define; + function _require(id) { + var module = _require.cache[id]; if (!module) { var exports = {}; - module = _require.cache[index] = { - id: index, + module = _require.cache[id] = { + id: id, exports: exports }; - _require.modules[index].call(exports, module, exports); + _require.modules[id].call(exports, module, exports); } return module.exports; } @@ -360,7 +361,7 @@ module.exports = { 'answer': 42 }; }, function (module, exports) { - return __external_url; + module.exports = __external_url; } ]; return _require(4); diff --git a/test/suites/a (exports A with map and comments)/expected.js.map b/test/suites/a (exports A with map and comments)/expected.js.map index 9ca8000..6aed04e 100644 --- a/test/suites/a (exports A with map and comments)/expected.js.map +++ b/test/suites/a (exports A with map and comments)/expected.js.map @@ -1 +1 @@ -{"version":3,"sources":["umdWrapper.js","preamble.js","../node_modules/davy/davy.js","../node_modules/davy/index.js","../node_modules/davy/node_modules/subsequent/index.js","../node_modules/davy/node_modules/subsequent/subsequent.js","fixtures/a.js","fixtures/b/index.js","fixtures/c.js","fixtures/data.json"],"names":["name","factory","define","amd","exports","module","_require","index","cache","id","modules","call","global","next","subsequent","Promise","Davy","fn","value","undefined","__deferreds","arguments","length","resolver","Resolver","val","fulfill","err","reject","e","prototype","isFulfilled","isRejected","then","onFulfill","onReject","deferred","defer","resolve","SUCCESS","FAILURE","push","promise","TypeError","isObject","isFunction","isResolved","self","complete","error","deferreds","type","i","onRejected","onResolved","tap","onFulfilled","spread","apply","cast","each","list","iterator","len","all","parse","race","wrap","obj","Array","isArray","args","buffer","tick","enqueue","execute","setImmediate","process","nextTick","postMessage","message","onMessage","data","stopPropagation","addEventListener","attachEvent","setTimeout","c","url","topValue","expectedValue","answer","a"],"mappings":"CACC,UAAUA,IAAV,EAAgBC,OAAhB,EAAyB;AAAA,IACtB,IAAI,OAAOC,MAAP,KAAkB,UAAlB,IAAgCA,MAAA,CAAOC,GAA3C,EAAgD;AAAA,QAE5C;AAAA,QAAAD,MAAA,CAAO,C,SAAA,CAAP,EAAyBD,OAAzB,EAF4C;AAAA,KAAhD,MAGO,IAAI,OAAOG,OAAP,KAAmB,QAAvB,EAAiC;AAAA,QAIpC;AAAA;AAAA;AAAA,QAAAC,MAAA,CAAOD,OAAP,GAAiBH,OAAA,C,cAAA,CAAjB,CAJoC;AAAA,KAAjC,MAKA;AAAA,QAEH;AAAA,aAAKD,IAAL,IAAaC,OAAA,C,SAAA,CAAb,CAFG;AAAA,KATe;AAAA,C,MCDzB,U,cAAA,EAA0BC,MAA1B,EAAkC;AAAA,IAClC,SAASI,QAAT,CAAkBC,KAAlB,EAAyB;AAAA,QACxB,IAAIF,MAAA,GAASC,QAAA,CAASE,KAAT,CAAeD,KAAf,CAAb,CADwB;AAAA,QAGxB,IAAI,CA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\ No newline at end of file +{"version":3,"sources":["../node_modules/davy/davy.js","../node_modules/davy/index.js","../node_modules/davy/node_modules/subsequent/index.js","../node_modules/davy/node_modules/subsequent/subsequent.js","fixtures/a.js","fixtures/b/index.js","fixtures/c.js","fixtures/data.json"],"names":["global","next","define","amd","subsequent","Promise","module","exports","_require","Davy","fn","value","undefined","__deferreds","arguments","length","resolver","Resolver","val","fulfill","err","reject","e","prototype","isFulfilled","isRejected","then","onFulfill","onReject","deferred","defer","resolve","SUCCESS","FAILURE","push","promise","TypeError","isObject","isFunction","isResolved","self","call","complete","error","deferreds","type","i","onRejected","onResolved","tap","onFulfilled","spread","apply","cast","each","list","iterator","len","all","parse","race","wrap","obj","Array","isArray","args","buffer","tick","enqueue","execute","setImmediate","process","nextTick","postMessage","message","onMessage","data","stopPropagation","addEventListener","attachEvent","setTimeout","c","url","topValue","expectedValue","answer","a"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAAA,CAAC,UAASA,MAAT,EAAiB;AAAA,gBAChB,aADgB;AAAA,gBAEhB,IAAIC,IAAJ,CAFgB;AAAA,gBAGhB,IAAI,OAAOC,MAAP,KAAkB,UAAlB,IAAgCA,MAAA,CAAOC,GAA3C,EAAgD;AAAA,oBAC9CD,MAAA,CAAO,CAAE,YAAF,CAAP,EAAyB,UAASE,UAAT,EAAqB;AAAA,wBAC5CH,IAAA,GAAOG,UAAP,CAD4C;AAAA,wBAE5C,OAAOC,OAAP,CAF4C;AAAA,qBAA9C,EAD8C;AAAA,iBAAhD,MAKO,IAAI,OAAOC,MAAP,KAAkB,QAAlB,IAA8BA,MAAA,CAAOC,OAAzC,EAAkD;AAAA,oBACvDD,MAAA,CAAOC,OAAP,GAAiBF,OAAjB,CADuD;AAAA,oBAEvDJ,IAAA,GAAOO,QAAA,CAAQ,CAAR,CAAP,CAFuD;AAAA,iBAAlD,MAGA;AAAA,oBACLR,MAAA,CAAOS,IAAP,GAAcJ,OAAd,CADK;AAAA,oBAELJ,IAA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KAAesE,UAAA,CAAWX,OAAX,EAAoB,CAApB,CAAf,CADkB;AAAA,6BAApB,CADK;AAAA,yBA7CuC;AAAA,wBAkD9C,OAAOpE,IAAP,CAlD8C;AAAA,qBAArC,EAAX,CAFgB;AAAA,gBAsDhB,IAAI,OAAOC,MAAP,KAAkB,UAAlB,IAAgCA,MAAA,CAAOC,GAA3C,EAAgD;AAAA,oBAC9CD,MAAA,CAAO,YAAW;AAAA,wBAChB,OAAOD,IAAP,CADgB;AAAA,qBAAlB,EAD8C;AAAA,iBAAhD,MAIO,IAAI,OAAOK,MAAP,KAAkB,QAAlB,IAA8BA,MAAA,CAAOC,OAAzC,EAAkD;AAAA,oBACvDD,MAAA,CAAOC,OAAP,GAAiBN,IAAjB,CADuD;AAAA,iBAAlD,MAEA;AAAA,oBACLD,MAAA,CAAOI,UAAP,GAAoBH,IAApB,CADK;AAAA,iBA5DS;AAAA,aAAlB,CA+DG,IA/DH,G;;;YCEA;AAAA,gBAAIgF,CAAA,GAAIzE,QAAA,CAAQ,CAAR,CAAR,EACC0E,GAAA,GAAM1E,QAAA,CAAQ,CAAR,CADP,EAECH,OAAA,GAAUG,QAAA,CAAQ,CAAR,CAFX,C;YAIA,KAAK2E,QAAL,GAAgB3E,QAAA,CAAQ,CAAR,IAAiB,CAAjC,C;YACA,KAAK4E,aAAL,GAAqB5E,QAAA,CAAQ,CAAR,EAAuB6E,MAA5C,C;;;YCLA;AAAA,YAAA/E,MAAA,CAAOC,OAAP,GAAiBC,QAAA,CAAQ,CAAR,EAAgBG,KAAhB,GAAwB,CAAzC,C;;;YCAA;AAAA,gBAAI2E,CAAA,GAAI9E,QAAA,CAAQ,CAAR,CAAR,C;YACAD,OAAA,CAAQI,KAAR,GAAgB,CAAhB,C;;;YCHAL,MAAA,CAAOC,OAAP,GAAiB,EAChB,UAAU,EADM,EAAjB,C"} \ No newline at end of file diff --git a/test/suites/a (exports A with map)/expected.js b/test/suites/a (exports A with map)/expected.js index a055b55..c85ab0c 100644 --- a/test/suites/a (exports A with map)/expected.js +++ b/test/suites/a (exports A with map)/expected.js @@ -1,21 +1,22 @@ -(function (name, factory) { +(function (factory) { if (typeof define === 'function' && define.amd) { - define([undefined], factory); + define([''], factory); } else if (typeof exports === 'object') { module.exports = factory(require('url')); } else { - this[name] = factory(undefined); + this.A = factory(undefined); } -}('A', function (__external_url, define) { - function _require(index) { - var module = _require.cache[index]; +}(function (__external_url) { + var global = this, define; + function _require(id) { + var module = _require.cache[id]; if (!module) { var exports = {}; - module = _require.cache[index] = { - id: index, + module = _require.cache[id] = { + id: id, exports: exports }; - _require.modules[index].call(exports, module, exports); + _require.modules[id].call(exports, module, exports); } return module.exports; } @@ -352,7 +353,7 @@ module.exports = { 'answer': 42 }; }, function (module, exports) { - return __external_url; + module.exports = __external_url; } ]; return _require(4); diff --git a/test/suites/a (exports A with map)/expected.js.map b/test/suites/a (exports A with map)/expected.js.map index 32ebd26..acbca24 100644 --- a/test/suites/a (exports A with map)/expected.js.map +++ b/test/suites/a (exports A with map)/expected.js.map @@ -1 +1 @@ -{"version":3,"sources":["umdWrapper.js","preamble.js","../node_modules/davy/davy.js","../node_modules/davy/index.js","../node_modules/davy/node_modules/subsequent/index.js","../node_modules/davy/node_modules/subsequent/subsequent.js","fixtures/a.js","fixtures/b/index.js","fixtures/c.js","fixtures/data.json"],"names":["name","factory","define","amd","exports","module","_require","index","cache","id","modules","call","global","next","subsequent","Promise","Davy","fn","value","undefined","__deferreds","arguments","length","resolver","Resolver","val","fulfill","err","reject","e","prototype","isFulfilled","isRejected","then","onFulfill","onReject","deferred","defer","resolve","SUCCESS","FAILURE","push","promise","TypeError","isObject","isFunction","isResolved","self","complete","error","deferreds","type","i","onRejected","onResolved","tap","onFulfilled","spread","apply","cast","each","list","iterator","len","all","parse","race","wrap","obj","Array","isArray","args","buffer","tick","enqueue","execute","setImmediate","process","nextTick","postMessage","message","onMessage","data","stopPropagation","addEventListener","attachEvent","setTimeout","c","url","topValue","expectedValue","answer","a"],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AAA,GAAUT,QAAA,CAAQ,CAAR,CAFX,C;YAIA,KAAKmF,QAAL,GAAgBnF,QAAA,CAAQ,CAAR,IAAiB,CAAjC,C;YACA,KAAKoF,aAAL,GAAqBpF,QAAA,CAAQ,CAAR,EAAuBqF,MAA5C,C;SLOoB;AAAA,Q;YMZpBtF,MAAA,CAAOD,OAAP,GAAiBE,QAAA,CAAQ,CAAR,EAAgBY,KAAhB,GAAwB,CAAzC,C;SNYoB;AAAA,Q;YOZpB,IAAI0E,CAAA,GAAItF,QAAA,CAAQ,CAAR,CAAR,C;YACAF,OAAA,CAAQc,KAAR,GAAgB,CAAhB,C;SPWoB;AAAA,Q;YQdpBb,MAAA,CAAOD,OAAP,GAAiB,EAChB,UAAU,EADM,EAAjB,C;SRcoB;AAAA,Q;;SAAA;AAAA,KAAnB,CAdkC;AAAA,IAgBlC,OAAOE,QAAA,C,CAAA,CAAP,CAhBkC;AAAA,C"} \ No newline at end of file +{"version":3,"sources":["../node_modules/davy/davy.js","../node_modules/davy/index.js","../node_modules/davy/node_modules/subsequent/index.js","../node_modules/davy/node_modules/subsequent/subsequent.js","fixtures/a.js","fixtures/b/index.js","fixtures/c.js","fixtures/data.json"],"names":["global","next","define","amd","subsequent","Promise","module","exports","_require","Davy","fn","value","undefined","__deferreds","arguments","length","resolver","Resolver","val","fulfill","err","reject","e","prototype","isFulfilled","isRejected","then","onFulfill","onReject","deferred","defer","resolve","SUCCESS","FAILURE","push","promise","TypeError","isObject","isFunction","isResolved","self","call","complete","error","deferreds","type","i","onRejected","onResolved","tap","onFulfilled","spread","apply","cast","each","list","iterator","len","all","parse","race","wrap","obj","Array","isArray","args","buffer","tick","enqueue","execute","setImmediate","process","nextTick","postMessage","message","onMessage","data","stopPropagation","addEventListener","attachEvent","setTimeout","c","url","topValue","expectedValue","answer","a"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;YAAA,CAAC,UAASA,MAAT,EAAiB;AAAA,gBAChB,aADgB;AAAA,gBAEhB,IAA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1E,QAAA,CAAQ,CAAR,CADP,EAECH,OAAA,GAAUG,QAAA,CAAQ,CAAR,CAFX,C;YAIA,KAAK2E,QAAL,GAAgB3E,QAAA,CAAQ,CAAR,IAAiB,CAAjC,C;YACA,KAAK4E,aAAL,GAAqB5E,QAAA,CAAQ,CAAR,EAAuB6E,MAA5C,C;;;YCLA/E,MAAA,CAAOC,OAAP,GAAiBC,QAAA,CAAQ,CAAR,EAAgBG,KAAhB,GAAwB,CAAzC,C;;;YCAA,IAAI2E,CAAA,GAAI9E,QAAA,CAAQ,CAAR,CAAR,C;YACAD,OAAA,CAAQI,KAAR,GAAgB,CAAhB,C;;;YCHAL,MAAA,CAAOC,OAAP,GAAiB,EAChB,UAAU,EADM,EAAjB,C"} \ No newline at end of file diff --git a/test/suites/a (exports A)/expected.js b/test/suites/a (exports A)/expected.js index 8581214..bda17ca 100644 --- a/test/suites/a (exports A)/expected.js +++ b/test/suites/a (exports A)/expected.js @@ -1,21 +1,22 @@ -(function (name, factory) { +(function (factory) { if (typeof define === 'function' && define.amd) { - define([undefined], factory); + define([''], factory); } else if (typeof exports === 'object') { module.exports = factory(require('url')); } else { - this[name] = factory(undefined); + this.A = factory(undefined); } -}('A', function (__external_url, define) { - function _require(index) { - var module = _require.cache[index]; +}(function (__external_url) { + var global = this, define; + function _require(id) { + var module = _require.cache[id]; if (!module) { var exports = {}; - module = _require.cache[index] = { - id: index, + module = _require.cache[id] = { + id: id, exports: exports }; - _require.modules[index].call(exports, module, exports); + _require.modules[id].call(exports, module, exports); } return module.exports; } @@ -352,7 +353,7 @@ module.exports = { 'answer': 42 }; }, function (module, exports) { - return __external_url; + module.exports = __external_url; } ]; return _require(4); diff --git a/test/suites/c (no exports)/expected.js b/test/suites/c (no exports)/expected.js index 402ef31..5b10d5a 100644 --- a/test/suites/c (no exports)/expected.js +++ b/test/suites/c (no exports)/expected.js @@ -1,13 +1,14 @@ -(function (__external_url, define) { - function _require(index) { - var module = _require.cache[index]; +(function (__external_url) { + var global = this, define; + function _require(id) { + var module = _require.cache[id]; if (!module) { var exports = {}; - module = _require.cache[index] = { - id: index, + module = _require.cache[id] = { + id: id, exports: exports }; - _require.modules[index].call(exports, module, exports); + _require.modules[id].call(exports, module, exports); } return module.exports; } @@ -344,7 +345,7 @@ module.exports = { 'answer': 42 }; }, function (module, exports) { - return __external_url; + module.exports = __external_url; } ]; return _require(6);