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.
The text was updated successfully, but these errors were encountered:
The
this
keyword returns an expression dependent on the context where it's being used. This context is resolved by theResolveThisBinding()
abstract operation. This abstract operation will get the current environment record, and return thethis
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 thethis
binding.The text was updated successfully, but these errors were encountered: