Fwd: What was said in this sentence?
paloshmax at gmail.com
Sat Feb 17 18:55:50 UTC 2018
---------- Forwarded message ----------
From: Maxim Vaarwel <paloshmax at gmail.com>
Date: 2018-02-18 4:53 GMT+10:00
Subject: Re: What was said in this sentence?
To: "T.J. Crowder" <tj.crowder at farsightsoftware.com>
Wow, thank you, I'm grateful to your answer. Thank you for helping me.
2018-02-14 17:06 GMT+10:00 T.J. Crowder <tj.crowder at farsightsoftware.com>:
> On Wed, Feb 14, 2018 at 5:15 AM, Maxim Vaarwel <paloshmax at gmail.com>
> >> "Whether the toString function can be applied successfully to a host
> object is implementation-dependent". What "implementation-dependent"
> > What does this sentence say? What kind of implementation are we talking
> about (The algorithm toString is concrete described)?
> The most recent spec I can find with that sentence is the 5th edition,
> which is 3-4 editions out of date. I suggest using the [latest draft
> standard] as your primary reference.
> To answer your question: The implementation in question is the
> implementation of the host object, not `toString`. In the 5th edition,
> ["host object"] is defined as:
> > object supplied by the host environment to complete the execution
> environment of ECMAScript
> For instance, a DOM object in a browser. ECMAScript cannot say that
> applying `Array.prototype.toString` or `Object.prototype.toString` to a
> host object will necessarily work as described (for instance,
> `Object.prototype.toString.call(domElement)`); it depends on the
> implementation of the host object.
> -- T.J. Crowder
> : http://ecma-international.org/ecma-262/5.1/#sec-4.3.8
> : https://tc39.github.io/ecma262/
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss