Bug 997258 - Update TypedArrayCreator to be compatible with simplified Typed Array interface. r=bz
authorRichard Barnes <rbarnes@mozilla.com>
Wed, 16 Apr 2014 13:56:52 -0400
changeset 179240 746ce8a34f0f677e9ffc93fb7cc914c4a189a1d5
parent 179239 858255f591710d0f1dfbd5454003406163e7f3b3
child 179241 1e163918ea051d3a94623f69da155071494713c2
push id272
push userpvanderbeken@mozilla.com
push dateMon, 05 May 2014 16:31:18 +0000
reviewersbz
bugs997258
milestone31.0a1
Bug 997258 - Update TypedArrayCreator to be compatible with simplified Typed Array interface. r=bz
dom/bindings/TypedArray.h
--- a/dom/bindings/TypedArray.h
+++ b/dom/bindings/TypedArray.h
@@ -201,18 +201,17 @@ class TypedArrayCreator
 
   public:
     TypedArrayCreator(const ArrayType& aArray)
       : mArray(aArray)
     {}
 
     JSObject* Create(JSContext* aCx) const
     {
-      return TypedArrayType::Create(aCx, JS::NullPtr(), mArray.Length(),
-                                    mArray.Elements());
+      return TypedArrayType::Create(aCx, mArray.Length(), mArray.Elements());
     }
 
   private:
     const ArrayType& mArray;
 };
 
 // A class for rooting an existing TypedArray struct
 template<typename ArrayType>