Support ES5 this
handling in strict mode
#940
Labels
behavior
bug
Issues considered a bug
Ecma Incompatibility
Issues about Rhino being incompatible with the EcmaScript spec
Strict Mode
Issues related to non-compliance with the ES5 Strict Mode spec
Milestone
While Rhino has some support for strict mode, a large chunk is missing, namely the handling of the
this
value in functions in strict mode.Basic gist:
this
value, don't default toglobalThis
this
value is a primitive, don't box it as an ObjectImplementing this one has its challenges, mainly the fact that the Callable interface that is used throughout the Rhino codebase and by 3rd party code that integrated/interacts with Rhino assumes
this
is an instance of ScriptableObject, a assumption that no longer holds true.See #442 (comment) for some details
The text was updated successfully, but these errors were encountered: