-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implementation-defined typeof still necessary? #1440
Comments
Fun fact: old versions of I.E, up to I believe 8, return |
Previously, the ECMAScript specification permitted non-callable non-standard exotic objects to have implementation-defined typeof, within certain limits. Although some ECMAScript implementations may have taken advantage of this possibility historically, it's not clear that anyone needs it anymore. Instead, @@toStringTag and other mechanisms can be used by embedders to indicate aspects of objects. Closes tc39#1440
From IE10,
|
Both of those appear to be |
Let's phase out this phaseout strategy! |
Regardless of if Edge actually returns It also has support for something called a "variant |
Previously, the ECMAScript specification permitted non-callable non-standard exotic objects to have implementation-defined typeof, within certain limits. Although some ECMAScript implementations may have taken advantage of this possibility historically, it's not clear that anyone needs it anymore. Instead, other mechanisms can be used by embedders to indicate aspects of objects. Closes tc39#1440
Interesting. It'd be great to hear from ChakraCore folks to understand if this behavior is important to them, cc @zenparsing. |
I'm currently digging into this with respect to CC and will report what I find. |
Previously, the ECMAScript specification permitted non-callable non-standard exotic objects to have implementation-defined typeof, within certain limits. Although some ECMAScript implementations may have taken advantage of this possibility historically, it's not clear that anyone needs it anymore. Instead, other mechanisms can be used by embedders to indicate aspects of objects. Closes tc39#1440
Now that we have the HTML document.all object defined, including its
typeof document.all = "undefined"
behavior, do we still need to permit non-standard, non-callable exotic objects to have implementation-defined typeof, as defined in https://tc39.github.io/ecma262/#sec-typeof-operator-runtime-semantics-evaluation ? I'm not aware of any use cases for this in the Web; do other embedding environments need it?See related discussion at whatwg/webidl#512 @annevk @TimothyGu
The text was updated successfully, but these errors were encountered: