mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
[INFER] Fix bogus assert and build break, bug 621487.
This commit is contained in:
parent
b5bb63ceba
commit
ab466f6704
4
js/src/jit-test/tests/basic/bug621487.js
Normal file
4
js/src/jit-test/tests/basic/bug621487.js
Normal file
@ -0,0 +1,4 @@
|
||||
|
||||
(function() { while (0) { var a, a = b; } })();
|
||||
|
||||
(function(b) { do { var a, a = b; } while (0); assertEq(a, 10); })(10);
|
@ -801,7 +801,7 @@ FrameState::prepareForJump(jsbytecode *target, Assembler &masm, bool synced)
|
||||
|
||||
const FrameEntry *fe = getOrTrack(alloc->slot(reg));
|
||||
if (synced || !fe->backing()->dataInRegister(reg)) {
|
||||
JS_ASSERT(fe->data.synced());
|
||||
JS_ASSERT_IF(!synced, fe->data.synced());
|
||||
if (reg.isReg())
|
||||
masm.loadPayload(addressOf(fe), reg.reg());
|
||||
else
|
||||
|
@ -4390,7 +4390,7 @@ static JSFunctionSpec shell_functions[] = {
|
||||
#endif
|
||||
#ifdef JS_THREADSAFE
|
||||
JS_FN_TYPE("sleep", Sleep_fn, 1,0, JS_TypeHandlerVoid),
|
||||
JS_FN_TYPE("scatter", Scatter, 1,0, JS_TypeHandlerMissing),
|
||||
JS_FN_TYPE("scatter", Scatter, 1,0, JS_TypeHandlerDynamic),
|
||||
#endif
|
||||
JS_FN_TYPE("snarf", Snarf, 0,0, JS_TypeHandlerString),
|
||||
JS_FN_TYPE("read", Snarf, 0,0, JS_TypeHandlerString),
|
||||
|
Loading…
Reference in New Issue
Block a user