Update env_maker.js

This commit is contained in:
cilame 2021-11-29 14:12:20 +08:00 committed by GitHub
parent c2e9f359a1
commit 0d7e16190d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -408,6 +408,9 @@ function hook_obj(r,n){
}
}
if (b == '__proto__' && !_isvm){ // vm2 使用时就不好处理 this.__proto__ = window.__proto__ ,需注意
if (!a[_y]){
a[_y] = {}
}
if (!a[_y]['fake__proto__']){
a[_y]['fake__proto__'] = hook_obj(a[b],n+'.__proto__')
}