WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WONTFIX
77709
Rename [Deletable] IDL to [NotConfigurable] IDL
https://bugs.webkit.org/show_bug.cgi?id=77709
Summary
Rename [Deletable] IDL to [NotConfigurable] IDL
Kentaro Hara
Reported
2012-02-02 20:35:49 PST
[Deletable] is a negation of [[Configurable]] in the ECMAScript spec (8.6.1 of
http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf
). We can rename [Deletable] to [NotConfigurable].
Attachments
Patch
(3.62 KB, patch)
2012-02-02 20:38 PST
,
Kentaro Hara
abarth
: review-
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Kentaro Hara
Comment 1
2012-02-02 20:38:40 PST
Created
attachment 125249
[details]
Patch
Kentaro Hara
Comment 2
2012-02-02 20:45:26 PST
BTW, [NotConfigurable] is implemented in JSC only. Should we also implement it in V8? Currently, [NotConfigurable] is used by HTMLDocument.all only. I could not find the HTMLDocument.all spec (HTMLDocument does not have |all| in the HTML5 spec (
http://www.w3.org/TR/html5/dom.html#htmldocument
)), and I am not sure if it is acceptable to make HTMLDocument.all [[NotConfigurable]] in V8.
Kentaro Hara
Comment 3
2012-02-02 22:29:16 PST
(In reply to
comment #2
)
> BTW, [NotConfigurable] is implemented in JSC only. Should we also implement it in V8? > > Currently, [NotConfigurable] is used by HTMLDocument.all only. I could not find the HTMLDocument.all spec (HTMLDocument does not have |all| in the HTML5 spec (
http://www.w3.org/TR/html5/dom.html#htmldocument
)), and I am not sure if it is acceptable to make HTMLDocument.all [[NotConfigurable]] in V8.
Sorry, the HTML spec is here:
http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#dom-document-all
As far as I see the HTML spec and the Web IDL spec, it seems that HTMLDocument.all should not be configurable. Maybe we do not need to implement it in V8.
Adam Barth
Comment 4
2012-02-03 00:52:25 PST
> Maybe we do not need to implement it in V8.
That seems likely. It's also possible V8 does this with custom code given that it's only used in one place.
Adam Barth
Comment 5
2012-02-03 00:54:07 PST
Comment on
attachment 125249
[details]
Patch I'm not sure this is an improvement. Deletable is very easy for me to understand what it means. If we could align exactly with WebIDL, that might swing the balance, but given that we're not going to match WebIDL exactly, I'd opt for the clearer "Deletable" over the somewhat-confusing "NotConfigurable". Thoughts?
Kentaro Hara
Comment 6
2012-02-03 00:57:48 PST
(In reply to
comment #5
)
> (From update of
attachment 125249
[details]
) > I'm not sure this is an improvement. Deletable is very easy for me to understand what it means. If we could align exactly with WebIDL, that might swing the balance, but given that we're not going to match WebIDL exactly, I'd opt for the clearer "Deletable" over the somewhat-confusing "NotConfigurable". > > Thoughts?
IMO, [NotEnumerable] will be acceptable. [NotConfigurable] might be acceptable. [NotWritable] is worse than [ReadOnly] (though I posted the patch). OK, then let us mark the renaming patches for [NotConfigurable] and [ReadOnly] as "WONTFIX".
Kentaro Hara
Comment 7
2012-02-03 01:10:40 PST
(In reply to
comment #6
)
> (In reply to
comment #5
) > IMO, ... [NotWritable] is worse than [ReadOnly] (though I posted the patch). OK, then let us mark the renaming patches for ... [ReadOnly] as "WONTFIX".
Please ignore the above comment. I've not yet posted the patch:-) Thanks indeed for reviewing patches.
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