diff options
author | b-fuze <b-fuze.root@live.com> | 2018-03-31 07:26:40 -0400 |
---|---|---|
committer | Alex Lam S.L <alexlamsl@gmail.com> | 2018-03-31 20:26:40 +0900 |
commit | 8adfc29f914efd2af62638491b6c3034e1cc8712 (patch) | |
tree | 8857313f6c50f96972ea274f16bb1565a2a59f2c /test/input/pr-3040 | |
parent | 02f47e1713cb413ac0d2602039c18292f43db863 (diff) | |
download | tracifyjs-8adfc29f914efd2af62638491b6c3034e1cc8712.tar.gz tracifyjs-8adfc29f914efd2af62638491b6c3034e1cc8712.zip |
Don't load source map until the JS source is fully received (#3040)
Diffstat (limited to 'test/input/pr-3040')
-rw-r--r-- | test/input/pr-3040/expect.js | 2 | ||||
-rw-r--r-- | test/input/pr-3040/input.js | 11 | ||||
-rw-r--r-- | test/input/pr-3040/input.js.map | 1 |
3 files changed, 14 insertions, 0 deletions
diff --git a/test/input/pr-3040/expect.js b/test/input/pr-3040/expect.js new file mode 100644 index 00000000..b911f3f8 --- /dev/null +++ b/test/input/pr-3040/expect.js @@ -0,0 +1,2 @@ +function _toConsumableArray(arr){if(Array.isArray(arr)){for(var i=0,arr2=Array(arr.length);i<arr.length;i++){arr2[i]=arr[i]}return arr2}else{return Array.from(arr)}}var _require=require("bar"),foo=_require.foo;var _require2=require("world"),hello=_require2.hello;foo.x.apply(foo,_toConsumableArray(foo.y(hello.z))); +//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImlucHV0Mi5qcyJdLCJuYW1lcyI6WyJyZXF1aXJlIiwiYXJyIl0sIm1hcHBpbmdzIjoiMEpBQWNBLEtBQVFDIiwic291cmNlc0NvbnRlbnQiOlsiY29uc3Qge2Zvb30gPSByZXF1aXJlKFwiYmFyXCIpO1xuY29uc3Qge2hlbGxvfSA9IHJlcXVpcmUoXCJ3b3JsZFwiKTtcblxuZm9vLngoLi4uZm9vLnkoaGVsbG8ueikpO1xuIl19 diff --git a/test/input/pr-3040/input.js b/test/input/pr-3040/input.js new file mode 100644 index 00000000..6515dcbd --- /dev/null +++ b/test/input/pr-3040/input.js @@ -0,0 +1,11 @@ +function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } + +var _require = require("bar"), + foo = _require.foo; + +var _require2 = require("world"), + hello = _require2.hello; + +foo.x.apply(foo, _toConsumableArray(foo.y(hello.z))); + +//# sourceMappingURL=input.js.map
\ No newline at end of file diff --git a/test/input/pr-3040/input.js.map b/test/input/pr-3040/input.js.map new file mode 100644 index 00000000..f0883e22 --- /dev/null +++ b/test/input/pr-3040/input.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["input2.js"],"names":["require","foo","hello","x","apply","_toConsumableArray","y","z"],"mappings":"kLAAcA,QAAQ,OAAfC,aAAAA,kBACSD,QAAQ,SAAjBE,gBAAAA,MAEPD,IAAIE,EAAJC,MAAAH,IAAAI,mBAASJ,IAAIK,EAAEJ,MAAMK","sourcesContent":["const {foo} = require(\"bar\");\nconst {hello} = require(\"world\");\n\nfoo.x(...foo.y(hello.z));\n"]}
\ No newline at end of file |