mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 783989 - Return false after reporting error. r=ejpbruel
This commit is contained in:
parent
9dd734f9d1
commit
5d53d2e91b
2
js/src/jit-test/tests/basic/bug783989.js
Normal file
2
js/src/jit-test/tests/basic/bug783989.js
Normal file
@ -0,0 +1,2 @@
|
||||
// |jit-test| error: Error
|
||||
wrapWithProto(0);
|
@ -3410,6 +3410,7 @@ WrapWithProto(JSContext *cx, unsigned argc, jsval *vp)
|
||||
if (!obj.isObject() || !proto.isObjectOrNull()) {
|
||||
JS_ReportErrorNumber(cx, my_GetErrorMessage, NULL, JSSMSG_INVALID_ARGS,
|
||||
"wrapWithProto");
|
||||
return false;
|
||||
}
|
||||
|
||||
JSObject *wrapped = Wrapper::New(cx, &obj.toObject(), proto.toObjectOrNull(),
|
||||
|
Loading…
Reference in New Issue
Block a user