mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 373082: fixing bad English in comments for xml_lookupProperty.
This commit is contained in:
parent
08a2fd7455
commit
91eadf6295
@ -5043,11 +5043,11 @@ xml_mark_vector(JSContext *cx, JSXML **vec, uint32 len)
|
||||
* uses native properties. Effectively after xml_lookupProperty any property
|
||||
* stored previously using assignments to xml.function::name will be removed.
|
||||
* We partially workaround the problem in js_GetXMLFunction. There we take
|
||||
* advatage of the fact that typically function:: is used to access the
|
||||
* functions is stored in XML.prototype so when js_GetProperty returns
|
||||
* non-function property, it represents the result of GetProprty setter hiding
|
||||
* the function. Thus an extra prototype chain lookup should fix this.
|
||||
* See bug 355257 for the proper solution.
|
||||
* advantage of the fact that typically function:: is used to access the
|
||||
* functions from XML.prototype. So when js_GetProperty returns a non-function
|
||||
* property, we assume that it represents the result of GetProperty setter
|
||||
* hiding the function and use an extra prototype chain lookup to recover it.
|
||||
* For a proper solution see bug 355257.
|
||||
*/
|
||||
static JSBool
|
||||
xml_lookupProperty(JSContext *cx, JSObject *obj, jsid id, JSObject **objp,
|
||||
|
Loading…
Reference in New Issue
Block a user