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
... when running this test and the extension is compiled with the internal-call-transform optimization. Notice this is null after the static method call.
Assigning 'this' to a temporary variable before calling the static method can be used as a workaround ...
var temp =this;
To me, this means that somehow 'this' is being sent into oblivion after a static method call from a method context, but you'll know more about whats going on under the hood. This particular phenomena is the cause of 2 separate errors in the test suite. I'm assuming it's unexpected behavior since it works fine when compiled with "internal-call-transformation:" false.
The text was updated successfully, but these errors were encountered:
The following block of code (source) results in the unintended side effect of losing reference to 'this' after the static method call ...
Output
... when running this test and the extension is compiled with the internal-call-transform optimization. Notice
this
is null after the static method call.Assigning 'this' to a temporary variable before calling the static method can be used as a workaround ...
To me, this means that somehow 'this' is being sent into oblivion after a static method call from a method context, but you'll know more about whats going on under the hood. This particular phenomena is the cause of 2 separate errors in the test suite. I'm assuming it's unexpected behavior since it works fine when compiled with "internal-call-transformation:" false.
The text was updated successfully, but these errors were encountered: