mirror of
https://github.com/servo/servo.git
synced 2025-06-08 00:23:30 +00:00
Call the NamedGetter method from the get trap in proxy bindings.
This commit is contained in:
parent
14df96d772
commit
c82eb3b1a4
11 changed files with 13 additions and 53 deletions
|
@ -3836,14 +3836,14 @@ if expando.is_not_null() {
|
|||
getIndexedOrExpando = getFromExpando + "\n"
|
||||
|
||||
namedGetter = self.descriptor.operations['NamedGetter']
|
||||
if namedGetter and False: #XXXjdm unfinished
|
||||
getNamed = ("if (JSID_IS_STRING(id)) {\n" +
|
||||
if namedGetter:
|
||||
getNamed = ("if (RUST_JSID_IS_STRING(id) != 0) {\n" +
|
||||
" let name = jsid_to_str(cx, id);\n" +
|
||||
" let this = UnwrapProxy(proxy);\n" +
|
||||
" let this = JS::from_raw(this);\n" +
|
||||
" let this = this.root();\n" +
|
||||
CGIndenter(CGProxyNamedGetter(self.descriptor, templateValues)).define() +
|
||||
"}\n") % (self.descriptor.concreteType)
|
||||
"}\n")
|
||||
else:
|
||||
getNamed = ""
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue