From 762168bf0f6f9c99e37beea30c6bab649c5e36ef Mon Sep 17 00:00:00 2001 From: Christian Holler Date: Sat, 1 Mar 2014 01:30:09 +0100 Subject: [PATCH] Bug 917996 - OOM follow-up fix for assertion. r=nbp --HG-- extra : rebase_source : a1e739e5ad53002f0dc44f2ce2b02ff8c05168a5 --- js/src/jsscript.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/jsscript.cpp b/js/src/jsscript.cpp index 9b4c0890f9d..0ef846da198 100644 --- a/js/src/jsscript.cpp +++ b/js/src/jsscript.cpp @@ -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; }