mirror of
https://github.com/servo/servo.git
synced 2025-06-08 16:43:28 +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"
|
getIndexedOrExpando = getFromExpando + "\n"
|
||||||
|
|
||||||
namedGetter = self.descriptor.operations['NamedGetter']
|
namedGetter = self.descriptor.operations['NamedGetter']
|
||||||
if namedGetter and False: #XXXjdm unfinished
|
if namedGetter:
|
||||||
getNamed = ("if (JSID_IS_STRING(id)) {\n" +
|
getNamed = ("if (RUST_JSID_IS_STRING(id) != 0) {\n" +
|
||||||
" let name = jsid_to_str(cx, id);\n" +
|
" let name = jsid_to_str(cx, id);\n" +
|
||||||
" let this = UnwrapProxy(proxy);\n" +
|
" let this = UnwrapProxy(proxy);\n" +
|
||||||
" let this = JS::from_raw(this);\n" +
|
" let this = JS::from_raw(this);\n" +
|
||||||
" let this = this.root();\n" +
|
" let this = this.root();\n" +
|
||||||
CGIndenter(CGProxyNamedGetter(self.descriptor, templateValues)).define() +
|
CGIndenter(CGProxyNamedGetter(self.descriptor, templateValues)).define() +
|
||||||
"}\n") % (self.descriptor.concreteType)
|
"}\n")
|
||||||
else:
|
else:
|
||||||
getNamed = ""
|
getNamed = ""
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,3 @@
|
||||||
[Document-getElementsByTagName.html]
|
[Document-getElementsByTagName.html]
|
||||||
type: testharness
|
type: testharness
|
||||||
[Shouldn\'t be able to set unsigned properties on a HTMLCollection (strict mode)]
|
expected: CRASH
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[hasOwnProperty, getOwnPropertyDescriptor, getOwnPropertyNames]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,3 @@
|
||||||
[Element-getElementsByTagName.html]
|
[Element-getElementsByTagName.html]
|
||||||
type: testharness
|
type: testharness
|
||||||
[Shouldn\'t be able to set unsigned properties on a HTMLCollection (strict mode)]
|
expected: CRASH
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[hasOwnProperty, getOwnPropertyDescriptor, getOwnPropertyNames]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
|
@ -1,17 +0,0 @@
|
||||||
[document.images.html]
|
|
||||||
type: testharness
|
|
||||||
[img with id]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[img with name]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[img with id and name]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Two img elements with the same id]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Two img elements with the same name]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
|
@ -2,11 +2,11 @@
|
||||||
type: testharness
|
type: testharness
|
||||||
expected: TIMEOUT
|
expected: TIMEOUT
|
||||||
[The submit event must be fired when click a button in submit status]
|
[The submit event must be fired when click a button in submit status]
|
||||||
expected: NOTRUN
|
expected: TIMEOUT
|
||||||
|
|
||||||
[The reset event must be fired when click a button in reset status]
|
[The reset event must be fired when click a button in reset status]
|
||||||
expected: NOTRUN
|
expected: TIMEOUT
|
||||||
|
|
||||||
[The show event must be fired when click a button in menu status]
|
[The show event must be fired when click a button in menu status]
|
||||||
expected: NOTRUN
|
expected: TIMEOUT
|
||||||
|
|
||||||
|
|
|
@ -9,3 +9,6 @@
|
||||||
[The controls must root at the fieldset element]
|
[The controls must root at the fieldset element]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
[The form attribute must return the fieldset\'s form owner]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
|
|
@ -5,3 +5,4 @@
|
||||||
|
|
||||||
[sanitization algorithm strips line breaks]
|
[sanitization algorithm strips line breaks]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
|
|
@ -8,3 +8,4 @@
|
||||||
|
|
||||||
[reset button resets controls associated with a form using the form attribute]
|
[reset button resets controls associated with a form using the form attribute]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
[storage_session_clear_js.html]
|
|
||||||
type: testharness
|
|
||||||
[Web Storage]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
[storage_session_getitem_js.html]
|
|
||||||
type: testharness
|
|
||||||
[array access should be correct]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
|
@ -9,9 +9,6 @@
|
||||||
[Web Storage 4]
|
[Web Storage 4]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[Web Storage 5]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Web Storage 6]
|
[Web Storage 6]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
@ -27,15 +24,9 @@
|
||||||
[Web Storage 10]
|
[Web Storage 10]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[Web Storage 11]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Web Storage 12]
|
[Web Storage 12]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[Web Storage 13]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Web Storage 14]
|
[Web Storage 14]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue