mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 578041: eager-this With objects and non-default getters. (r=jorendorff)
--HG-- extra : rebase_source : b25db67f7d0a6069ffbc5281f4e3c5044e1d1b92
This commit is contained in:
parent
b3eb68b6e5
commit
fdd3d88c3f
@ -4968,7 +4968,10 @@ BEGIN_CASE(JSOP_CALLNAME)
|
||||
goto error;
|
||||
} else {
|
||||
sprop = (JSScopeProperty *)prop;
|
||||
NATIVE_GET(cx, obj, obj2, sprop, JSGET_METHOD_BARRIER, &rval);
|
||||
JSObject *normalized = obj;
|
||||
if (normalized->getClass() == &js_WithClass && !sprop->hasDefaultGetter())
|
||||
normalized = js_UnwrapWithObject(cx, normalized);
|
||||
NATIVE_GET(cx, normalized, obj2, sprop, JSGET_METHOD_BARRIER, &rval);
|
||||
JS_UNLOCK_OBJ(cx, obj2);
|
||||
}
|
||||
|
||||
|
5
js/src/trace-test/tests/basic/bug578041.js
Normal file
5
js/src/trace-test/tests/basic/bug578041.js
Normal file
@ -0,0 +1,5 @@
|
||||
// |trace-test| error: invalid arguments
|
||||
|
||||
__defineGetter__('x', Float32Array);
|
||||
with(this)
|
||||
x;
|
Loading…
Reference in New Issue
Block a user