[INFER] Fix bogus assert and build break, bug 621487.

This commit is contained in:
Brian Hackett 2010-12-29 12:06:16 -05:00
parent b5bb63ceba
commit ab466f6704
3 changed files with 6 additions and 2 deletions

View 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);

View File

@ -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

View File

@ -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),