Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(155)

Unified Diff: node_modules/vulcanize/node_modules/uglify-js/test/compress/concat-strings.js

Issue 800513006: Added vulcanize under third_party/npm_modules (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: node_modules/vulcanize/node_modules/uglify-js/test/compress/concat-strings.js
diff --git a/node_modules/vulcanize/node_modules/uglify-js/test/compress/concat-strings.js b/node_modules/vulcanize/node_modules/uglify-js/test/compress/concat-strings.js
new file mode 100644
index 0000000000000000000000000000000000000000..791929876017e61ae4f7a6d229d1004e2ea66d62
--- /dev/null
+++ b/node_modules/vulcanize/node_modules/uglify-js/test/compress/concat-strings.js
@@ -0,0 +1,22 @@
+concat_1: {
+ options = {
+ evaluate: true
+ };
+ input: {
+ var a = "foo" + "bar" + x() + "moo" + "foo" + y() + "x" + "y" + "z" + q();
+ var b = "foo" + 1 + x() + 2 + "boo";
+ var c = 1 + x() + 2 + "boo";
+
+ // this CAN'T safely be shortened to 1 + x() + "5boo"
+ var d = 1 + x() + 2 + 3 + "boo";
+
+ var e = 1 + x() + 2 + "X" + 3 + "boo";
+ }
+ expect: {
+ var a = "foobar" + x() + "moofoo" + y() + "xyz" + q();
+ var b = "foo1" + x() + "2boo";
+ var c = 1 + x() + 2 + "boo";
+ var d = 1 + x() + 2 + 3 + "boo";
+ var e = 1 + x() + 2 + "X3boo";
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698