Fix bindings tests after r208209.
authorsimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 1 Nov 2016 05:22:54 +0000 (05:22 +0000)
committersimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 1 Nov 2016 05:22:54 +0000 (05:22 +0000)
* bindings/scripts/test/JS/JSTestObj.cpp:
(WebCore::setJSTestObjTypedArrayAttrFunction):
* bindings/scripts/test/JS/JSTestOverloadedConstructors.cpp:
(WebCore::constructJSTestOverloadedConstructors1):
(WebCore::constructJSTestOverloadedConstructors2):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@208212 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp
Source/WebCore/bindings/scripts/test/JS/JSTestOverloadedConstructors.cpp

index 78899eb..f4a62e3 100644 (file)
@@ -1,3 +1,13 @@
+2016-10-31  Simon Fraser  <simon.fraser@apple.com>
+
+        Fix bindings tests after r208209.
+
+        * bindings/scripts/test/JS/JSTestObj.cpp:
+        (WebCore::setJSTestObjTypedArrayAttrFunction):
+        * bindings/scripts/test/JS/JSTestOverloadedConstructors.cpp:
+        (WebCore::constructJSTestOverloadedConstructors1):
+        (WebCore::constructJSTestOverloadedConstructors2):
+
 2016-10-31  Joseph Pecoraro  <pecoraro@apple.com>
 
         Warning: Multiple build commands for output file RenderThemeCocoa.h
index 666327e..02cd558 100644 (file)
@@ -3990,7 +3990,7 @@ static inline bool setJSTestObjTypedArrayAttrFunction(ExecState& state, JSTestOb
     UNUSED_PARAM(state);
     UNUSED_PARAM(throwScope);
     auto& impl = thisObject.wrapped();
-    auto nativeValue = toFloat32Array(value);
+    auto nativeValue = toUnsharedFloat32Array(value);
     RETURN_IF_EXCEPTION(throwScope, false);
     if (UNLIKELY(!nativeValue)) {
         throwAttributeTypeError(state, throwScope, "TestObject", "typedArrayAttr", "Float32Array");
index 1f6b4b2..56e1b0f 100644 (file)
@@ -75,7 +75,7 @@ static inline EncodedJSValue constructJSTestOverloadedConstructors1(ExecState* s
     ASSERT(castedThis);
     if (UNLIKELY(state->argumentCount() < 1))
         return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
-    auto arrayBuffer = toArrayBuffer(state->uncheckedArgument(0));
+    auto arrayBuffer = toUnsharedArrayBuffer(state->uncheckedArgument(0));
     RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
     if (UNLIKELY(!arrayBuffer))
         return throwArgumentTypeError(*state, throwScope, 0, "arrayBuffer", "TestOverloadedConstructors", nullptr, "ArrayBuffer");
@@ -92,7 +92,7 @@ static inline EncodedJSValue constructJSTestOverloadedConstructors2(ExecState* s
     ASSERT(castedThis);
     if (UNLIKELY(state->argumentCount() < 1))
         return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
-    auto arrayBufferView = toArrayBufferView(state->uncheckedArgument(0));
+    auto arrayBufferView = toUnsharedArrayBufferView(state->uncheckedArgument(0));
     RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
     if (UNLIKELY(!arrayBufferView))
         return throwArgumentTypeError(*state, throwScope, 0, "arrayBufferView", "TestOverloadedConstructors", nullptr, "ArrayBufferView");