[Webkit-unassigned] [Bug 131707] Simple ES6 feature: Number constructor extras
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sat Sep 27 11:35:09 PDT 2014
https://bugs.webkit.org/show_bug.cgi?id=131707
--- Comment #33 from Oliver Hunt <oliver at apple.com> 2014-09-27 11:35:06 PST ---
(In reply to comment #30)
> (From update of attachment 238593 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=238593&action=review
>
> > LayoutTests/js/script-tests/number-constructor.js:22
> > +shouldBeFalse('Number.isFinite(undefined)');
>
> Just for your information, there is no keyword “undefined”. This just works because undefined is not the name of any variable or property. Could also be “foo”, which is also undefined.
Happily ES spec does now define an immutable property named "undefined" with the value undefined on the global object!
Yay!
Alas it's still not a keyword so
function f(undefined) { if (typeof blah === undefined) ... }
Is still horribly broken, but if you do that you deserve whatever pain you get :)
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list