You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, instrumenting a prop defined in window.document itself leads to infinite loop.
This is because we do the following: getterOfProp = Object.getOwnPropertyDescriptor(ownerOfProp, prop).get; and we eventually call originalGetter.apply(window.document);, which leads to an infinite loop.
For now, we just return without instrumenting it. Need to figure out a way to fix it. One workaround maybe to define the instrumented property in document.__proto__
The text was updated successfully, but these errors were encountered:
yuhao
changed the title
Instrumenting a prop defined in window.document itself leads to infinite loop
Instrument props defined in window.document itself
May 10, 2016
Right now, instrumenting a prop defined in window.document itself leads to infinite loop.
This is because we do the following:
getterOfProp = Object.getOwnPropertyDescriptor(ownerOfProp, prop).get;
and we eventually calloriginalGetter.apply(window.document);
, which leads to an infinite loop.For now, we just return without instrumenting it. Need to figure out a way to fix it. One workaround maybe to define the instrumented property in
document.__proto__
The text was updated successfully, but these errors were encountered: