pub fn this_object(
interp: &mut Interp<'_>,
this: &Value,
) -> JsResult<Gc<JsObject>>Expand description
The this of a method call, as an object.
A primitive receiver is boxed on demand: "abc".indexOf(…) reaches a method on
String.prototype with a string this, and the method has to behave as if it
had an object. The box is only for property access, so the text is read through
this_string instead.