Bug 1303714 bustage fix a=bustage
authorCarsten "Tomcat" Book <cbook@mozilla.com>
Wed, 05 Oct 2016 15:40:11 +0200
changeset 358180 f4eca83603d1891caf183f8e7bed1760caef144f
parent 358179 1deca8f8c4967865fcf13c30a4a92abe9d64c4cb
child 358181 cf891143381c8923e5ca428eec9c30d90a9f66a4
push id1324
push usermtabara@mozilla.com
push dateMon, 16 Jan 2017 13:07:44 +0000
treeherdermozilla-release@a01c49833940 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbustage
bugs1303714
milestone51.0a2
Bug 1303714 bustage fix a=bustage
js/src/vm/TypedArrayObject.cpp
--- a/js/src/vm/TypedArrayObject.cpp
+++ b/js/src/vm/TypedArrayObject.cpp
@@ -777,17 +777,17 @@ class TypedArrayObjectTemplate : public 
              */
             JSObject* wrapped = CheckedUnwrap(bufobj);
             if (!wrapped) {
                 JS_ReportError(cx, "Permission denied to access object");
                 return nullptr;
             }
 
             if (!IsArrayBuffer(wrapped) && !IsSharedArrayBuffer(wrapped)) {
-                JS_ReportErrorNumberASCII(cx, GetErrorMessage, nullptr, JSMSG_TYPED_ARRAY_BAD_ARGS);
+                JS_ReportErrorNumber(cx, GetErrorMessage, nullptr, JSMSG_TYPED_ARRAY_BAD_ARGS);
                 return nullptr; // must be arrayBuffer
             }
 
             /*
              * And for even more fun, the new view's prototype should be
              * set to the origin compartment's prototype object, not the
              * target's (specifically, the actual view in the target
              * compartment will use as its prototype a wrapper around the