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 thiskeyword returns an expression dependent on the context where it's being used. This context is resolved by the ResolveThisBinding() abstract operation. This abstract operation will get the current environment record, and return the this binding, if any.
The MDN documentation also explains how this keyword will resolve to a different expression depending on how it's called.
To implement this, we require changes to the parser, where keywords are parsed (parser.rs#L112), which will probably require a new ExprDef. Executing that expression in the executor, it should return the object representing the this binding.
Activity
jasonwilliams commentedon Mar 4, 2020
Thanks for making this
Razican commentedon Mar 9, 2020
I just noticed that #185 exists.
jasonwilliams commentedon Mar 9, 2020
it does but its quite an old pr now