mirror of
https://github.com/servo/servo.git
synced 2025-06-08 00:23:30 +00:00
Remove deprecated 'creator' WebIDL attribute
According to @Ms2ger, the 'creator' attribute was merged into 'setter'
This commit is contained in:
parent
6c6c6663ab
commit
d8da5c20f6
9 changed files with 5 additions and 22 deletions
|
@ -4156,8 +4156,6 @@ class CGDOMJSProxyHandler_defineProperty(CGAbstractExternMethod):
|
|||
|
||||
indexedSetter = self.descriptor.operations['IndexedSetter']
|
||||
if indexedSetter:
|
||||
if self.descriptor.operations['IndexedCreator'] != indexedSetter:
|
||||
raise TypeError("Can't handle creator that's different from the setter")
|
||||
set += ("let index = get_array_index_from_id(cx, id);\n" +
|
||||
"if let Some(index) = index {\n" +
|
||||
" let this = UnwrapProxy(proxy);\n" +
|
||||
|
@ -4173,8 +4171,6 @@ class CGDOMJSProxyHandler_defineProperty(CGAbstractExternMethod):
|
|||
|
||||
namedSetter = self.descriptor.operations['NamedSetter']
|
||||
if namedSetter:
|
||||
if self.descriptor.operations['NamedCreator'] != namedSetter:
|
||||
raise TypeError("Can't handle creator that's different from the setter")
|
||||
set += ("if RUST_JSID_IS_STRING(id) != 0 {\n" +
|
||||
CGIndenter(CGProxyNamedSetter(self.descriptor)).define() +
|
||||
" (*opresult).code_ = 0; /* SpecialCodes::OkCode */\n" +
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue