W3C home > Mailing lists > Public > public-script-coord@w3.org > January to March 2015

[Bug 22858] use @@hasInstance instead of [[HasInstance]]

From: <bugzilla@jessica.w3.org>
Date: Thu, 29 Jan 2015 17:58:32 +0000
To: public-script-coord@w3.org
Message-ID: <bug-22858-3890-AE1kNmbJFf@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=22858

Anne <annevk@annevk.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |annevk@annevk.nl

--- Comment #1 from Anne <annevk@annevk.nl> ---
What bug resulted in us adding an [[HasInstance]] override?

I think having this is a bad idea and is future hostile. It makes it harder to
move objects from the web platform into JavaScript as they will end up having
subtly different behavior. (Or JavaScript's default library will end up being
subtly inconsistent.)

If we want better identity checks we should just introduce a method that can do
it and not mess with default class semantics.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Received on Thursday, 29 January 2015 17:58:34 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 29 January 2015 17:58:36 UTC