Searched refs:pure_funcs (Results 1 – 5 of 5) sorted by relevance
189 if (ARGS.pure_funcs) {190 if (COMPRESS) COMPRESS.pure_funcs = ARGS.pure_funcs;
75 pure_funcs : null, property91 var pure_funcs = this.options["pure_funcs"];92 if (typeof pure_funcs == "function") {93 this.pure_funcs = pure_funcs;95 this.pure_funcs = pure_funcs ? function(node) {96 return pure_funcs.indexOf(node.expression.print_to_string()) < 0;1755 if (!this.has_pure_annotation(compressor) && compressor.pure_funcs(this)) return true;2318 if (!this.has_pure_annotation(compressor) && compressor.pure_funcs(this)) {
90 `-c 'if_return=false,pure_funcs=["Math.pow","console.log"]'`415 - `pure_funcs` -- default `null`. You can pass an array of names and421 pass `pure_funcs: [ 'Math.floor' ]` to let it know that this429 after dropping the function call then use `pure_funcs` instead.
60 `pure_funcs` List of functions that can be safely694 after dropping the function call then use `pure_funcs` instead.768 - `pure_funcs` (default: `null`) — You can pass an array of names and774 pass `pure_funcs: [ 'Math.floor' ]` to let it know that this777 overhead (compression will be slower). Make sure symbols under `pure_funcs`
89 pure_funcs : null, property135 var pure_funcs = this.options["pure_funcs"];136 if (typeof pure_funcs == "function") {137 this.pure_funcs = pure_funcs;138 } else if (typeof pure_funcs == "string") {139 this.pure_funcs = function(node) { method in Compressor146 return !(expr && pure_funcs === expr.print_to_string());148 } else if (Array.isArray(pure_funcs)) {149 this.pure_funcs = function(node) { method in Compressor156 return !(expr && member(expr.print_to_string(), pure_funcs));[all …]