RESOLVED DUPLICATE of bug 16997 18531
Support IE's function Test.prototype.bar() {} syntax
https://bugs.webkit.org/show_bug.cgi?id=18531
Summary Support IE's function Test.prototype.bar() {} syntax
Eric Seidel (no email)
Reported 2008-04-16 08:59:19 PDT
Support IE's function Test.prototype.bar() {} syntax It's very strange that this is allowed, but it seems to be. See test case. I've not tested deeper things like: function Test.foo.bar.baz.prototype.foobar() {} I'm unsure how many sites are affected by this. I've seen it on at least one real site: http://music.sogua.com/song/18103725.html#a1
Attachments
test case (275 bytes, text/html)
2008-04-16 09:00 PDT, Eric Seidel (no email)
no flags
Eric Seidel (no email)
Comment 1 2008-04-16 09:00:31 PDT
Created attachment 20585 [details] test case
Gavin Barraclough
Comment 2 2011-08-08 15:44:26 PDT
This isn't widely supported and isn't on a standards track. This is probably invalid/won't-fix.
Alexey Proskuryakov
Comment 3 2011-08-09 10:54:29 PDT
Is this related to bug 16997?
Gavin Barraclough
Comment 4 2011-08-09 11:56:21 PDT
(In reply to comment #3) > Is this related to bug 16997? Alexey, Yes, yes it is. :-) These are not on track for standardization, Firefox don't support these, and I think neither Chrome nor Opera do either? Without interest from ECMA or wider browser support I don't think we'll want to adopt further proprietary and non-standard mechanisms, without a good reason. A good reasons to reopen this bug would be ECMA adoption, wider de-facto support, or a major web compatibility issue. *** This bug has been marked as a duplicate of bug 16997 ***
Note You need to log in before you can comment on or make changes to this bug.