Skip to content
This repository was archived by the owner on Jun 26, 2020. It is now read-only.
Prev Previous commit
Next Next commit
Prevent __inner_state__ from appearing in __proto__
  • Loading branch information
Vlad Balin committed Jan 6, 2017
commit 6ee5c9dfe6740b7c6f2d451ade6b882e6f42879d
2 changes: 1 addition & 1 deletion agent/Bridge.js
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ class Bridge {
var newProto = {};
var pIsFn = typeof val.__proto__ === 'function';
Object.getOwnPropertyNames(val.__proto__).forEach(name => {
if (pIsFn && (name === 'arguments' || name === 'callee' || name === 'caller') ) {
if ( name === '__inner_state__' || ( pIsFn && (name === 'arguments' || name === 'callee' || name === 'caller') ) ) {
return;
}

Expand Down