diff --git a/tools/env_maker.js b/tools/env_maker.js index c08d284..0acd58b 100644 --- a/tools/env_maker.js +++ b/tools/env_maker.js @@ -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){