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

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