From 9da95c1712a91e01fed5bb2854bf26afb6973f8d 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 314cda55f2ae..8e66f67d4f59 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)