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

Unified Diff: node_modules/vulcanize/node_modules/uglify-js/test/compress/issue-12.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/issue-12.js
diff --git a/node_modules/vulcanize/node_modules/uglify-js/test/compress/issue-12.js b/node_modules/vulcanize/node_modules/uglify-js/test/compress/issue-12.js
new file mode 100644
index 0000000000000000000000000000000000000000..bf87d5c01500fa6f76e6d2cfcd860ebbee121f4b
--- /dev/null
+++ b/node_modules/vulcanize/node_modules/uglify-js/test/compress/issue-12.js
@@ -0,0 +1,11 @@
+keep_name_of_getter: {
+ options = { unused: true };
+ input: { a = { get foo () {} } }
+ expect: { a = { get foo () {} } }
+}
+
+keep_name_of_setter: {
+ options = { unused: true };
+ input: { a = { set foo () {} } }
+ expect: { a = { set foo () {} } }
+}

Powered by Google App Engine
This is Rietveld 408576698