had some issue when changing Array.prototype
just in case.
This commit is contained in:
parent
31f8209193
commit
248ea8c36b
|
|
@ -1,4 +1,3 @@
|
||||||
/***********************************************************************
|
|
||||||
|
|
||||||
A JavaScript tokenizer / parser / beautifier / compressor.
|
A JavaScript tokenizer / parser / beautifier / compressor.
|
||||||
https://github.com/mishoo/UglifyJS2
|
https://github.com/mishoo/UglifyJS2
|
||||||
|
|
@ -229,7 +228,7 @@ function set_intersection(a, b) {
|
||||||
// this function is taken from Acorn [1], written by Marijn Haverbeke
|
// this function is taken from Acorn [1], written by Marijn Haverbeke
|
||||||
// [1] https://github.com/marijnh/acorn
|
// [1] https://github.com/marijnh/acorn
|
||||||
function makePredicate(words) {
|
function makePredicate(words) {
|
||||||
if (!(words instanceof Array)) words = words.split(" ");
|
if (!(words instanceof Array)) words = words.toString().split(" ");
|
||||||
var f = "", cats = [];
|
var f = "", cats = [];
|
||||||
out: for (var i = 0; i < words.length; ++i) {
|
out: for (var i = 0; i < words.length; ++i) {
|
||||||
for (var j = 0; j < cats.length; ++j)
|
for (var j = 0; j < cats.length; ++j)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user