mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
[INFER] Mark unexpected undefined result for JSON.stringify, bug 642161.
This commit is contained in:
parent
0fe6bffa50
commit
32ed3e9e97
1
js/src/jit-test/tests/basic/bug642161.js
Normal file
1
js/src/jit-test/tests/basic/bug642161.js
Normal file
@ -0,0 +1 @@
|
||||
assertEq(JSON.stringify(0 | "prefix" || Boolean), undefined);
|
@ -162,6 +162,8 @@ js_json_stringify(JSContext *cx, uintN argc, Value *vp)
|
||||
return JS_FALSE;
|
||||
vp->setString(str);
|
||||
} else {
|
||||
if (!cx->markTypeCallerUnexpected(types::TYPE_UNDEFINED))
|
||||
return JS_FALSE;
|
||||
vp->setUndefined();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user