mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 674207 - Assertion attempting to convert the value of the 'it' property in the shell to a primitive. r=luke
--HG-- extra : rebase_source : 40334c0f47f4b0dcb30f1f8cf6dadf87b7b29ada
This commit is contained in:
parent
5d42be833c
commit
4f15098148
@ -1187,7 +1187,9 @@ struct JSObject : js::gc::Cell {
|
||||
|
||||
bool defaultValue(JSContext *cx, JSType hint, js::Value *vp) {
|
||||
js::ConvertOp op = getClass()->convert;
|
||||
return (op == js::ConvertStub ? js::DefaultValue : op)(cx, this, hint, vp);
|
||||
bool ok = (op == js::ConvertStub ? js::DefaultValue : op)(cx, this, hint, vp);
|
||||
JS_ASSERT_IF(ok, vp->isPrimitive());
|
||||
return ok;
|
||||
}
|
||||
|
||||
JSType typeOf(JSContext *cx) {
|
||||
|
@ -5150,7 +5150,7 @@ its_convert(JSContext *cx, JSObject *obj, JSType type, jsval *vp)
|
||||
{
|
||||
if (its_noisy)
|
||||
fprintf(gOutFile, "converting it to %s type\n", JS_GetTypeName(cx, type));
|
||||
return JS_TRUE;
|
||||
return JS_ConvertStub(cx, obj, type, vp);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user