aboutsummaryrefslogtreecommitdiff
path: root/test/input/issue-3294
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2019-05-04 20:08:57 +0800
committerGitHub <noreply@github.com>2019-05-04 20:08:57 +0800
commit11cdab745d29313a4e1799c65d13f7d6d5a45938 (patch)
tree336375b5eac05211b5ea2c77aecc37069a3753ba /test/input/issue-3294
parenta89d424a0bd85c80a6b49b6585143ff723a243ca (diff)
downloadtracifyjs-11cdab745d29313a4e1799c65d13f7d6d5a45938.tar.gz
tracifyjs-11cdab745d29313a4e1799c65d13f7d6d5a45938.zip
fix corner cases in `sourceMap` (#3397)
fixes #3255 fixes #3294
Diffstat (limited to 'test/input/issue-3294')
-rw-r--r--test/input/issue-3294/input.js6
-rw-r--r--test/input/issue-3294/output.js2
2 files changed, 8 insertions, 0 deletions
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