This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 22507 - Need to define behaviour for setting properties on named properties objects
Summary: Need to define behaviour for setting properties on named properties objects
Status: RESOLVED FIXED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: WebIDL (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Cameron McCormack
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-28 08:01 UTC by Peter Van der Beken
Modified: 2014-01-27 21:40 UTC (History)
3 users (show)

See Also:


Attachments

Description Peter Van der Beken 2013-06-28 08:01:10 UTC
Right now only [[GetOwnProperty]] is defined, the spec should probably define both [[DefineOwnProperty]] and [[Delete]] too. The object is extensible, so need to define what happens for new properties. The existing properties are not writable but they are configurable, so need to define what happens if they're made writable and then set.
Comment 2 Boris Zbarsky 2013-08-09 19:30:15 UTC
Er, I get bug 21929 comment 2 actually belongs here...
Comment 3 Cameron McCormack 2014-01-27 21:40:57 UTC
(In reply to Boris Zbarsky from bug 21929 comment #2)
> The [[Delete]] defined in the spec now works for ES5 but not ES6: in ES6
> [[Delete]] just returns a boolean indicating success or not and the caller
> throws or not based on strict mode...

OK, fixed:

https://github.com/heycam/webidl/commit/a4e5e47940bd7fb1e0ea9408a4d45a508c543af4