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
The InlineSimpleMethods replaces the call of getVal() with val, which is incorrect because the this in the definition of getVal is not context, but rather Holder.
This is not a problem in ES5, because the arrow function is already rewritten before running this pass.
The text was updated successfully, but these errors were encountered:
Given the following input code:
Outputs:
The
InlineSimpleMethods
replaces the call ofgetVal()
withval
, which is incorrect because thethis
in the definition ofgetVal
is notcontext
, but ratherHolder
.This is not a problem in ES5, because the arrow function is already rewritten before running this pass.
The text was updated successfully, but these errors were encountered: