Bug 917996 - OOM follow-up fix for assertion. r=nbp

--HG--
extra : rebase_source : a1e739e5ad53002f0dc44f2ce2b02ff8c05168a5
This commit is contained in:
Christian Holler 2014-03-01 01:30:09 +01:00
parent 632820cb94
commit 762168bf0f

View File

@ -3619,7 +3619,7 @@ LazyScript::CreateRaw(ExclusiveContext *cx, HandleFunction fun,
p.usesArgumentsAndApply = false;
LazyScript *res = LazyScript::CreateRaw(cx, fun, packedFields, begin, end, lineno, column);
JS_ASSERT(res->version() == version);
JS_ASSERT_IF(res, res->version() == version);
return res;
}