Bug 123416
Summary: | Dictionary bindings should check for Date and RegExp objects | ||
---|---|---|---|
Product: | WebKit | Reporter: | Alexey Proskuryakov <ap> |
Component: | Bindings | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED INVALID | ||
Severity: | Normal | CC: | ahmad.saleem792, bfulgham, cdumez, heycam, rniwa, sam |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
See Also: | https://bugs.webkit.org/show_bug.cgi?id=164410 |
Alexey Proskuryakov
From WebIDL paragraph 4.2.20 Dictionary types:
2. If V is a native Date object or a native RegExp object, then throw a TypeError.
We don't have this check.
I don't know what the rationale behind this requirement was.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Ahmad Saleem
ap@webkit.org - Is something needed here? If I am understanding right, "RegEx" special casing were removed later on?
Bug 164410
Alexey Proskuryakov
The spec at the time of filing the bug is at https://github.com/whatwg/webidl/blob/ff92fdfb5c44c6a18347c8c9f2df3e87c74efabc/Overview.html
The latest spec doesn't contain "RegEx" or "Date" at all, so I suppose that there is nothing to do here. But I haven't been following any of this.