WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
133912
Dictionary with attribute set to 'undefined' counts as set but shouldn't
https://bugs.webkit.org/show_bug.cgi?id=133912
Summary
Dictionary with attribute set to 'undefined' counts as set but shouldn't
Dirk Schulze
Reported
2014-06-14 14:01:35 PDT
If an object has something like { x: undefined }, then the attribute x should count as unset. Instead it is set and can lead to wrong results. Example: DOMPoint({x: undefined}) shouldn't set DOMPoint.x (so that it defaults to 0). With the bug, DOMPoint.x gets set to NaN. (Undefined on number -> NaN.)
Attachments
Add attachment
proposed patch, testcase, etc.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug