mirror of
https://git.mirrors.martin98.com/https://github.com/cilame/v_jstools
synced 2025-08-14 06:35:53 +08:00
Update env_maker.js
This commit is contained in:
parent
2c8c3f072b
commit
658522dc3c
@ -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){
|
||||
|
Loading…
x
Reference in New Issue
Block a user