mirror of
https://github.com/servo/servo.git
synced 2025-07-25 08:10:21 +01:00
Implement HTMLSelectElement.add() and indexed setter, fix test that was relying on add to be a stub
This commit is contained in:
parent
1d645f3741
commit
c1b71fcc4d
7 changed files with 34 additions and 48 deletions
|
@ -5263,7 +5263,7 @@ class CGDOMJSProxyHandler_defineProperty(CGAbstractExternMethod):
|
|||
CGIndenter(CGProxyNamedSetter(self.descriptor)).define() +
|
||||
" return (*opresult).succeed();\n" +
|
||||
"}\n")
|
||||
else:
|
||||
elif self.descriptor.operations['NamedGetter']:
|
||||
set += ("if RUST_JSID_IS_STRING(id) || RUST_JSID_IS_INT(id) {\n" +
|
||||
CGIndenter(CGProxyNamedGetter(self.descriptor)).define() +
|
||||
" if result.is_some() {\n"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue