Bug 20737 - "Call the [[DefineOwnProperty]] internal method ..."
"Call the [[DefineOwnProperty]] internal method ..."
Status: NEW
Product: WebAppsWG
Classification: Unclassified
Component: WebIDL
unspecified
PC All
: P2 normal
: ---
Assigned To: Cameron McCormack
public-webapps-bugzilla
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-01-22 18:25 UTC by Marcos Caceres
Modified: 2013-01-24 16:33 UTC (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marcos Caceres 2013-01-22 18:25:37 UTC
http://dev.w3.org/2006/webapi/WebIDL/#es-sequence

[[
Call the [[DefineOwnProperty]] internal method on A with property name P, descriptor { [[Writable]]: true, [[Enumerable]]: true, [[Configurable]]: true, [[Value]]: E } and Boolean flag false.
]]

ES6 no longer seems to have the ability to set the throws flag for [[DefineOwnProperty]]:

http://people.mozilla.org/~jorendorff/es6-draft.html#sec-8.3.10
Comment 1 Boris Zbarsky 2013-01-22 18:27:44 UTC
Lots of WebIDL needs to be recast in terms of the ES6 MOP... once that firms up.
Comment 2 Marcos Caceres 2013-01-22 18:36:07 UTC
(In reply to comment #1)
> Lots of WebIDL needs to be recast in terms of the ES6 MOP... once that firms
> up.

Sure. Should I bother creating bugs for those as I find them or don't bother?
Comment 3 Boris Zbarsky 2013-01-22 18:38:50 UTC
Not sure, but I suspect most uses of [[something]] will need changes...
Comment 4 Cameron McCormack 2013-01-24 06:17:40 UTC
Yeah, I'm going to wait a while to finish converting everything to ES6.  (Note that http://dev.w3.org/2006/webapi/WebIDL/v1.html still references ES5, though it doesn't include some of the newer Web IDL features.)
Comment 5 Marcos Caceres 2013-01-24 16:33:47 UTC
(In reply to comment #4)
> Yeah, I'm going to wait a while to finish converting everything to ES6.

Fair enough. 
 
> (Note that http://dev.w3.org/2006/webapi/WebIDL/v1.html still references
> ES5, though it doesn't include some of the newer Web IDL features.)

Yeah, I'm mostly interested in keeping up with the latest and greatest.