mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 656381 - Handle JSOP_TRAP when looking up block chain (r=dmandelin)
This commit is contained in:
parent
960a3d7b07
commit
88f9a88fb1
5
js/src/jit-test/tests/basic/bug656381.js
Normal file
5
js/src/jit-test/tests/basic/bug656381.js
Normal file
@ -0,0 +1,5 @@
|
||||
// |jit-test| debug
|
||||
var f = (function () {with ({}) {}});
|
||||
dis(f);
|
||||
trap(f, 5, ''); // trap "nullblockchain" op
|
||||
f();
|
@ -199,9 +199,8 @@ js::GetBlockChainFast(JSContext *cx, StackFrame *fp, JSOp op, size_t oplen)
|
||||
|
||||
pc += oplen;
|
||||
op = JSOp(*pc);
|
||||
JS_ASSERT(js_GetOpcode(cx, fp->script(), pc) == op);
|
||||
|
||||
/* The fast paths assume no JSOP_RESETBASE/INDEXBASE noise. */
|
||||
/* The fast paths assume no JSOP_RESETBASE/INDEXBASE or JSOP_TRAP noise. */
|
||||
if (op == JSOP_NULLBLOCKCHAIN)
|
||||
return NULL;
|
||||
if (op == JSOP_BLOCKCHAIN)
|
||||
|
Loading…
Reference in New Issue
Block a user