had some issue when changing Array.prototype

just in case.
This commit is contained in:
DYM 2017-10-27 17:42:55 +02:00 committed by GitHub
parent 31f8209193
commit 248ea8c36b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)