From 3b43741a294bb66dd2a21259ceface6ef33aedcb Mon Sep 17 00:00:00 2001 From: Hannes Verschore Date: Thu, 28 Nov 2013 16:53:38 +0100 Subject: [PATCH] Bug 943667: OdinMonkey: Add check when removing AsmJSModule from IonScript, r=luke --- js/src/jit/IonCode.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/src/jit/IonCode.h b/js/src/jit/IonCode.h index 314cda55f2a..8e66f67d4f5 100644 --- a/js/src/jit/IonCode.h +++ b/js/src/jit/IonCode.h @@ -307,7 +307,8 @@ struct IonScript } bool addDependentAsmJSModule(JSContext *cx, DependentAsmJSModuleExit exit); void removeDependentAsmJSModule(DependentAsmJSModuleExit exit) { - JS_ASSERT(dependentAsmJSModules); + if (!dependentAsmJSModules) + return; for (size_t i = 0; i < dependentAsmJSModules->length(); i++) { if (dependentAsmJSModules->begin()[i].module == exit.module && dependentAsmJSModules->begin()[i].exitIndex == exit.exitIndex)