From 9d043da8c4078b0ee49edd0b09127c8cc3e580e2 Mon Sep 17 00:00:00 2001 From: Terrence Cole Date: Mon, 28 Oct 2013 09:37:58 -0700 Subject: [PATCH] Bug 926779 - Do not try to mark null TypedArrays; r=efaust --- dom/bindings/TypedArray.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dom/bindings/TypedArray.h b/dom/bindings/TypedArray.h index cdc9d683d97..1db626ac8d0 100644 --- a/dom/bindings/TypedArray.h +++ b/dom/bindings/TypedArray.h @@ -33,7 +33,9 @@ protected: public: inline void TraceSelf(JSTracer* trc) { - JS_CallObjectTracer(trc, &mObj, "TypedArray.mObj"); + if (mObj) { + JS_CallObjectTracer(trc, &mObj, "TypedArray.mObj"); + } } private: