diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2019-05-04 20:08:57 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-04 20:08:57 +0800 |
commit | 11cdab745d29313a4e1799c65d13f7d6d5a45938 (patch) | |
tree | 336375b5eac05211b5ea2c77aecc37069a3753ba /test/input | |
parent | a89d424a0bd85c80a6b49b6585143ff723a243ca (diff) | |
download | tracifyjs-11cdab745d29313a4e1799c65d13f7d6d5a45938.tar.gz tracifyjs-11cdab745d29313a4e1799c65d13f7d6d5a45938.zip |
fix corner cases in `sourceMap` (#3397)
fixes #3255
fixes #3294
Diffstat (limited to 'test/input')
-rw-r--r-- | test/input/issue-3040/expect.js (renamed from test/input/pr-3040/expect.js) | 0 | ||||
-rw-r--r-- | test/input/issue-3040/input.js (renamed from test/input/pr-3040/input.js) | 0 | ||||
-rw-r--r-- | test/input/issue-3040/input.js.map (renamed from test/input/pr-3040/input.js.map) | 0 | ||||
-rw-r--r-- | test/input/issue-3294/input.js | 6 | ||||
-rw-r--r-- | test/input/issue-3294/output.js | 2 |
5 files changed, 8 insertions, 0 deletions
diff --git a/test/input/pr-3040/expect.js b/test/input/issue-3040/expect.js index b911f3f8..b911f3f8 100644 --- a/test/input/pr-3040/expect.js +++ b/test/input/issue-3040/expect.js diff --git a/test/input/pr-3040/input.js b/test/input/issue-3040/input.js index 6515dcbd..6515dcbd 100644 --- a/test/input/pr-3040/input.js +++ b/test/input/issue-3040/input.js diff --git a/test/input/pr-3040/input.js.map b/test/input/issue-3040/input.js.map index f0883e22..f0883e22 100644 --- a/test/input/pr-3040/input.js.map +++ b/test/input/issue-3040/input.js.map diff --git a/test/input/issue-3294/input.js b/test/input/issue-3294/input.js new file mode 100644 index 00000000..09ee40f6 --- /dev/null +++ b/test/input/issue-3294/input.js @@ -0,0 +1,6 @@ +var Foo = function Foo(){console.log(1+2);}; new Foo(); + +//# sourceMappingURL=data:application/json;charset=utf-8;base64,DeadBeef +//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjpudWxsLCJzb3VyY2VzIjpbInN0ZGluIl0sInNvdXJjZXNDb250ZW50IjpbImNsYXNzIEZvbyB7IGNvbnN0cnVjdG9yKCl7Y29uc29sZS5sb2coMSsyKTt9IH0gbmV3IEZvbygpO1xuIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLElBQU0sR0FBRyxHQUFDLEFBQUUsWUFBVyxFQUFFLENBQUMsT0FBTyxDQUFDLEdBQUcsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFBLEFBQUUsQ0FBQyxJQUFJLEdBQUcsRUFBRSxDQUFDOyJ9 + + diff --git a/test/input/issue-3294/output.js b/test/input/issue-3294/output.js new file mode 100644 index 00000000..f6d13804 --- /dev/null +++ b/test/input/issue-3294/output.js @@ -0,0 +1,2 @@ +new function(){console.log(3)}; +//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0ZGluIl0sIm5hbWVzIjpbImNvbnNvbGUiLCJsb2ciXSwibWFwcGluZ3MiOiJBQUErQyxJQUFyQyxXQUFnQkEsUUFBUUMsSUFBSSIsInNvdXJjZXNDb250ZW50IjpbImNsYXNzIEZvbyB7IGNvbnN0cnVjdG9yKCl7Y29uc29sZS5sb2coMSsyKTt9IH0gbmV3IEZvbygpO1xuIl19 |