diff --git a/dom/bindings/TypedArray.h b/dom/bindings/TypedArray.h index 4e86eddf912a..9a160f1bbb2b 100644 --- a/dom/bindings/TypedArray.h +++ b/dom/bindings/TypedArray.h @@ -64,7 +64,7 @@ struct TypedArray : public TypedArray_base { static inline JSObject* Create(JSContext* cx, nsWrapperCache* creator, uint32_t length, - T* data = NULL) { + const T* data = NULL) { JSObject* creatorWrapper; JSAutoEnterCompartment ac; if (creator && (creatorWrapper = creator->GetWrapperPreserveColor())) {