Title: [260995] trunk/Source/_javascript_Core
Revision
260995
Author
[email protected]
Date
2020-05-01 04:26:07 -0700 (Fri, 01 May 2020)

Log Message

[WebIDL] Interface prototype objects should define @@toStringTag
https://bugs.webkit.org/show_bug.cgi?id=211020

Unreviewed follow-up to r260992.

* runtime/JSArrayBufferPrototype.cpp:
(JSC::JSArrayBufferPrototype::finishCreation): Revert change in attempt to fix ARMv7 test.

Modified Paths

Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (260994 => 260995)


--- trunk/Source/_javascript_Core/ChangeLog	2020-05-01 10:26:33 UTC (rev 260994)
+++ trunk/Source/_javascript_Core/ChangeLog	2020-05-01 11:26:07 UTC (rev 260995)
@@ -1,3 +1,13 @@
+2020-05-01  Alexey Shvayka  <[email protected]>
+
+        [WebIDL] Interface prototype objects should define @@toStringTag
+        https://bugs.webkit.org/show_bug.cgi?id=211020
+
+        Unreviewed follow-up to r260992.
+
+        * runtime/JSArrayBufferPrototype.cpp:
+        (JSC::JSArrayBufferPrototype::finishCreation): Revert change in attempt to fix ARMv7 test.
+
 2020-05-01  David Kilzer  <[email protected]>
 
         JSC::PropertySlot::m_attributes is uninitialized in constructor

Modified: trunk/Source/_javascript_Core/runtime/JSArrayBufferPrototype.cpp (260994 => 260995)


--- trunk/Source/_javascript_Core/runtime/JSArrayBufferPrototype.cpp	2020-05-01 10:26:33 UTC (rev 260994)
+++ trunk/Source/_javascript_Core/runtime/JSArrayBufferPrototype.cpp	2020-05-01 11:26:07 UTC (rev 260995)
@@ -115,7 +115,7 @@
     Base::finishCreation(vm);
     
     JSC_NATIVE_FUNCTION_WITHOUT_TRANSITION(vm.propertyNames->slice, arrayBufferProtoFuncSlice, static_cast<unsigned>(PropertyAttribute::DontEnum), 2);
-    JSC_TO_STRING_TAG_WITHOUT_TRANSITION();
+    putDirectWithoutTransition(vm, vm.propertyNames->toStringTagSymbol, jsString(vm, arrayBufferSharingModeName(sharingMode)), PropertyAttribute::DontEnum | PropertyAttribute::ReadOnly);
     if (sharingMode == ArrayBufferSharingMode::Default)
         JSC_NATIVE_GETTER_WITHOUT_TRANSITION(vm.propertyNames->byteLength, arrayBufferProtoGetterFuncByteLength, PropertyAttribute::DontEnum | PropertyAttribute::ReadOnly);
     else
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to