Detecting the "type" of a DOM object
Brendan Eich
brendan at mozilla.org
Sun Jun 24 05:51:48 PDT 2012
David Bruant wrote:
> Instead of adding a new [[instanceofHint]] internal property, maybe the
> [[NativeBrand]] could be reused.
+1 on that, which suggests [[NativeBrandMatch]] instead of
[[InstanceofMatch]].
Your proposal is more general but I think we should extend HasInstance
only very concretely, with what's needed for WebIDL, and probably for
any such system that reflects nominal types.
Cc'ing Tom in case he missed this thread, including your message to
which I am replying here.
(Nit: the 'o' in 'of' should be capitalized if we do use the name you
suggested.)
/be
More information about the es-discuss
mailing list