Update env_maker.js

This commit is contained in:
cilame 2021-11-29 14:32:01 +08:00 committed by GitHub
parent 2c8c3f072b
commit 658522dc3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -408,17 +408,6 @@ function hook_obj(r,n){
return _fu('hasOwnProperty', arguments, tmp.apply(this, arguments))
}
}
if (b == '__proto__' && !_isvm){ // vm2 使用时就不好处理 this.__proto__ = window.__proto__ ,需注意
if (!a[_y]){
a[_y] = {}
}
if (!a[_y]['fake__proto__']){
if (a[b] && a[b] !== _objp){
a[_y]['fake__proto__'] = hook_obj(a[b],n+'.__proto__')
}
}
return a[_y]['fake__proto__']
}
return r;
},
set:function(a,b,c){