From a9213219332d961c4bbe49de3fc30569c624a156 Mon Sep 17 00:00:00 2001 From: Tomoya Kanemaru Date: Thu, 28 Mar 2024 22:02:38 +0900 Subject: [PATCH] Update pure_new option comment --- lib/terser.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/terser.rb b/lib/terser.rb index 6f43ecc..7e3dc30 100644 --- a/lib/terser.rb +++ b/lib/terser.rb @@ -79,7 +79,7 @@ class Error < StandardError; end :negate_iife => true, # Negate immediately invoked function expressions to avoid extra parens :pure_getters => false, # Assume that object property access does not have any side-effects :pure_funcs => nil, # List of functions without side-effects. Can safely discard function calls when the result value is not used - :pure_new => false, # List of functions without side-effects. Can safely discard function calls when the result value is not used + :pure_new => false, # If objects generated by the new keyword are not used for other purposes, removes those objects :drop_console => false, # Drop calls to console.* functions :keep_fargs => false, # Preserve unused function arguments :keep_classnames => false, # Prevents discarding or mangling of class names. Pass a regular expression to only keep class names matching that regex.