Title: [188258] trunk
Revision
188258
Author
[email protected]
Date
2015-08-11 09:58:57 -0700 (Tue, 11 Aug 2015)

Log Message

[WebIDL] All interface objects must have a property named "name"
https://bugs.webkit.org/show_bug.cgi?id=147865

Reviewed by Darin Adler.

Source/WebCore:

As per the Web IDL specification, all interface objects must have a
property named "name" with attributes
{ [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: true }
whose value is the identifier of the corresponding interface:
http://heycam.github.io/webidl/#es-interface-call
http://heycam.github.io/webidl/#named-constructors

Previously, our interface objects had no such property, this patch
addresses the problem.

Both Firefox 38 and Chrome 44 comply with the Web IDL specification
here.

Test: fast/dom/interface-name-property.html

* bindings/scripts/CodeGeneratorJS.pm:
(GenerateConstructorHelperMethods):

* bindings/scripts/test/JS/JSTestActiveDOMObject.cpp:
(WebCore::JSTestActiveDOMObjectConstructor::finishCreation):
* bindings/scripts/test/JS/JSTestCustomConstructorWithNoInterfaceObject.cpp:
(WebCore::JSTestCustomConstructorWithNoInterfaceObjectConstructor::finishCreation):
* bindings/scripts/test/JS/JSTestCustomNamedGetter.cpp:
(WebCore::JSTestCustomNamedGetterConstructor::finishCreation):
* bindings/scripts/test/JS/JSTestEventConstructor.cpp:
(WebCore::JSTestEventConstructorConstructor::finishCreation):
* bindings/scripts/test/JS/JSTestEventTarget.cpp:
(WebCore::JSTestEventTargetConstructor::finishCreation):
* bindings/scripts/test/JS/JSTestException.cpp:
(WebCore::JSTestExceptionConstructor::finishCreation):
* bindings/scripts/test/JS/JSTestGenerateIsReachable.cpp:
(WebCore::JSTestGenerateIsReachableConstructor::finishCreation):
* bindings/scripts/test/JS/JSTestInterface.cpp:
(WebCore::JSTestInterfaceConstructor::finishCreation):
* bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp:
(WebCore::JSTestMediaQueryListListenerConstructor::finishCreation):
* bindings/scripts/test/JS/JSTestNamedConstructor.cpp:
(WebCore::JSTestNamedConstructorConstructor::finishCreation):
(WebCore::JSTestNamedConstructorNamedConstructor::finishCreation):
* bindings/scripts/test/JS/JSTestNode.cpp:
(WebCore::JSTestNodeConstructor::finishCreation):
* bindings/scripts/test/JS/JSTestNondeterministic.cpp:
(WebCore::JSTestNondeterministicConstructor::finishCreation):
* bindings/scripts/test/JS/JSTestObj.cpp:
(WebCore::JSTestObjConstructor::finishCreation):
* bindings/scripts/test/JS/JSTestOverloadedConstructors.cpp:
(WebCore::JSTestOverloadedConstructorsConstructor::finishCreation):
* bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.cpp:
(WebCore::JSTestSerializedScriptValueInterfaceConstructor::finishCreation):
* bindings/scripts/test/JS/JSTestTypedefs.cpp:
(WebCore::JSTestTypedefsConstructor::finishCreation):
* bindings/scripts/test/JS/JSattribute.cpp:
(WebCore::JSattributeConstructor::finishCreation):
* bindings/scripts/test/JS/JSreadonly.cpp:
(WebCore::JSreadonlyConstructor::finishCreation):
Rebaseline bindings tests.

LayoutTests:

Add layout test to check that the 'name' property on interface
objects has the following attributes:
{ [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: true }

* fast/dom/interface-name-property-expected.txt: Added.
* fast/dom/interface-name-property.html: Added.
New test.

* media/track/track-cue-empty-cue-text-expected.txt:
Rebaseline, this is a progression.

Modified Paths

Added Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (188257 => 188258)


--- trunk/LayoutTests/ChangeLog	2015-08-11 16:51:14 UTC (rev 188257)
+++ trunk/LayoutTests/ChangeLog	2015-08-11 16:58:57 UTC (rev 188258)
@@ -1,3 +1,21 @@
+2015-08-11  Chris Dumez  <[email protected]>
+
+        [WebIDL] All interface objects must have a property named "name"
+        https://bugs.webkit.org/show_bug.cgi?id=147865
+
+        Reviewed by Darin Adler.
+
+        Add layout test to check that the 'name' property on interface
+        objects has the following attributes:
+        { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: true }
+
+        * fast/dom/interface-name-property-expected.txt: Added.
+        * fast/dom/interface-name-property.html: Added.
+        New test.
+
+        * media/track/track-cue-empty-cue-text-expected.txt:
+        Rebaseline, this is a progression.
+
 2015-08-10  Chris Dumez  <[email protected]>
 
         The 'prototype' property on interface objects should not be enumerable

Added: trunk/LayoutTests/fast/dom/interface-name-property-expected.txt (0 => 188258)


--- trunk/LayoutTests/fast/dom/interface-name-property-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/fast/dom/interface-name-property-expected.txt	2015-08-11 16:58:57 UTC (rev 188258)
@@ -0,0 +1,39 @@
+The 'name' property on interface objects should have attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: true }
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+* Event
+PASS descriptor.writable is false
+PASS descriptor.enumerable is false
+PASS descriptor.configurable is true
+PASS descriptor.value is "Event"
+* Element
+PASS descriptor.writable is false
+PASS descriptor.enumerable is false
+PASS descriptor.configurable is true
+PASS descriptor.value is "Element"
+* Document
+PASS descriptor.writable is false
+PASS descriptor.enumerable is false
+PASS descriptor.configurable is true
+PASS descriptor.value is "Document"
+* Window
+PASS descriptor.writable is false
+PASS descriptor.enumerable is false
+PASS descriptor.configurable is true
+PASS descriptor.value is "Window"
+* HTMLOptionElement
+PASS descriptor.writable is false
+PASS descriptor.enumerable is false
+PASS descriptor.configurable is true
+PASS descriptor.value is "HTMLOptionElement"
+* Option
+PASS descriptor.writable is false
+PASS descriptor.enumerable is false
+PASS descriptor.configurable is true
+PASS descriptor.value is "Option"
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Added: trunk/LayoutTests/fast/dom/interface-name-property.html (0 => 188258)


--- trunk/LayoutTests/fast/dom/interface-name-property.html	                        (rev 0)
+++ trunk/LayoutTests/fast/dom/interface-name-property.html	2015-08-11 16:58:57 UTC (rev 188258)
@@ -0,0 +1,52 @@
+<!DOCTYPE html>
+<html>
+<body>
+<script src=""
+<script>
+description("The 'name' property on interface objects should have attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: true }");
+
+debug("* Event");
+var descriptor = Object.getOwnPropertyDescriptor(Event, "name");
+shouldBeFalse("descriptor.writable");
+shouldBeFalse("descriptor.enumerable");
+shouldBeTrue("descriptor.configurable");
+shouldBeEqualToString("descriptor.value", "Event");
+
+debug("* Element");
+var descriptor = Object.getOwnPropertyDescriptor(Element, "name");
+shouldBeFalse("descriptor.writable");
+shouldBeFalse("descriptor.enumerable");
+shouldBeTrue("descriptor.configurable");
+shouldBeEqualToString("descriptor.value", "Element");
+
+debug("* Document");
+var descriptor = Object.getOwnPropertyDescriptor(Document, "name");
+shouldBeFalse("descriptor.writable");
+shouldBeFalse("descriptor.enumerable");
+shouldBeTrue("descriptor.configurable");
+shouldBeEqualToString("descriptor.value", "Document");
+
+debug("* Window");
+var descriptor = Object.getOwnPropertyDescriptor(Window, "name");
+shouldBeFalse("descriptor.writable");
+shouldBeFalse("descriptor.enumerable");
+shouldBeTrue("descriptor.configurable");
+shouldBeEqualToString("descriptor.value", "Window");
+
+debug("* HTMLOptionElement");
+var descriptor = Object.getOwnPropertyDescriptor(HTMLOptionElement, "name");
+shouldBeFalse("descriptor.writable");
+shouldBeFalse("descriptor.enumerable");
+shouldBeTrue("descriptor.configurable");
+shouldBeEqualToString("descriptor.value", "HTMLOptionElement");
+
+debug("* Option");
+var descriptor = Object.getOwnPropertyDescriptor(Option, "name");
+shouldBeFalse("descriptor.writable");
+shouldBeFalse("descriptor.enumerable");
+shouldBeTrue("descriptor.configurable");
+shouldBeEqualToString("descriptor.value", "Option");
+</script>
+<script src=""
+</body>
+</html>

Modified: trunk/LayoutTests/media/track/track-cue-empty-cue-text-expected.txt (188257 => 188258)


--- trunk/LayoutTests/media/track/track-cue-empty-cue-text-expected.txt	2015-08-11 16:51:14 UTC (rev 188257)
+++ trunk/LayoutTests/media/track/track-cue-empty-cue-text-expected.txt	2015-08-11 16:58:57 UTC (rev 188258)
@@ -7,7 +7,7 @@
 ** The document fragment should have one child, an empty Text node **
 EXPECTED (fragment.childNodes.length == '1') OK
 EXPECTED (fragment.childNodes[0].length == '0') OK
-EXPECTED (fragment.childNodes[0].constructor.name == 'undefined') OK
+EXPECTED (fragment.childNodes[0].constructor.name == 'Text') OK
 
 END OF TEST
 

Modified: trunk/Source/WebCore/ChangeLog (188257 => 188258)


--- trunk/Source/WebCore/ChangeLog	2015-08-11 16:51:14 UTC (rev 188257)
+++ trunk/Source/WebCore/ChangeLog	2015-08-11 16:58:57 UTC (rev 188258)
@@ -1,3 +1,67 @@
+2015-08-11  Chris Dumez  <[email protected]>
+
+        [WebIDL] All interface objects must have a property named "name"
+        https://bugs.webkit.org/show_bug.cgi?id=147865
+
+        Reviewed by Darin Adler.
+
+        As per the Web IDL specification, all interface objects must have a
+        property named "name" with attributes
+        { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: true }
+        whose value is the identifier of the corresponding interface:
+        http://heycam.github.io/webidl/#es-interface-call
+        http://heycam.github.io/webidl/#named-constructors
+
+        Previously, our interface objects had no such property, this patch
+        addresses the problem.
+
+        Both Firefox 38 and Chrome 44 comply with the Web IDL specification
+        here.
+
+        Test: fast/dom/interface-name-property.html
+
+        * bindings/scripts/CodeGeneratorJS.pm:
+        (GenerateConstructorHelperMethods):
+
+        * bindings/scripts/test/JS/JSTestActiveDOMObject.cpp:
+        (WebCore::JSTestActiveDOMObjectConstructor::finishCreation):
+        * bindings/scripts/test/JS/JSTestCustomConstructorWithNoInterfaceObject.cpp:
+        (WebCore::JSTestCustomConstructorWithNoInterfaceObjectConstructor::finishCreation):
+        * bindings/scripts/test/JS/JSTestCustomNamedGetter.cpp:
+        (WebCore::JSTestCustomNamedGetterConstructor::finishCreation):
+        * bindings/scripts/test/JS/JSTestEventConstructor.cpp:
+        (WebCore::JSTestEventConstructorConstructor::finishCreation):
+        * bindings/scripts/test/JS/JSTestEventTarget.cpp:
+        (WebCore::JSTestEventTargetConstructor::finishCreation):
+        * bindings/scripts/test/JS/JSTestException.cpp:
+        (WebCore::JSTestExceptionConstructor::finishCreation):
+        * bindings/scripts/test/JS/JSTestGenerateIsReachable.cpp:
+        (WebCore::JSTestGenerateIsReachableConstructor::finishCreation):
+        * bindings/scripts/test/JS/JSTestInterface.cpp:
+        (WebCore::JSTestInterfaceConstructor::finishCreation):
+        * bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp:
+        (WebCore::JSTestMediaQueryListListenerConstructor::finishCreation):
+        * bindings/scripts/test/JS/JSTestNamedConstructor.cpp:
+        (WebCore::JSTestNamedConstructorConstructor::finishCreation):
+        (WebCore::JSTestNamedConstructorNamedConstructor::finishCreation):
+        * bindings/scripts/test/JS/JSTestNode.cpp:
+        (WebCore::JSTestNodeConstructor::finishCreation):
+        * bindings/scripts/test/JS/JSTestNondeterministic.cpp:
+        (WebCore::JSTestNondeterministicConstructor::finishCreation):
+        * bindings/scripts/test/JS/JSTestObj.cpp:
+        (WebCore::JSTestObjConstructor::finishCreation):
+        * bindings/scripts/test/JS/JSTestOverloadedConstructors.cpp:
+        (WebCore::JSTestOverloadedConstructorsConstructor::finishCreation):
+        * bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.cpp:
+        (WebCore::JSTestSerializedScriptValueInterfaceConstructor::finishCreation):
+        * bindings/scripts/test/JS/JSTestTypedefs.cpp:
+        (WebCore::JSTestTypedefsConstructor::finishCreation):
+        * bindings/scripts/test/JS/JSattribute.cpp:
+        (WebCore::JSattributeConstructor::finishCreation):
+        * bindings/scripts/test/JS/JSreadonly.cpp:
+        (WebCore::JSreadonlyConstructor::finishCreation):
+        Rebaseline bindings tests.
+
 2015-08-11  Ting-Wei Lan  <[email protected]>
 
         Fix debug build when optimization is enabled

Modified: trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm (188257 => 188258)


--- trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm	2015-08-11 16:51:14 UTC (rev 188257)
+++ trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm	2015-08-11 16:58:57 UTC (rev 188258)
@@ -4792,6 +4792,8 @@
         push(@$outputArray, "    putDirect(vm, vm.propertyNames->prototype, ${className}::getPrototype(vm, globalObject), DontDelete | ReadOnly | DontEnum);\n");
     }
 
+    push(@$outputArray, "    putDirect(vm, vm.propertyNames->name, jsNontrivialString(&vm, String(ASCIILiteral(\"$visibleInterfaceName\"))), ReadOnly | DontEnum);\n");
+
     if (defined $leastConstructorLength) {
         push(@$outputArray, "    putDirect(vm, vm.propertyNames->length, jsNumber(${leastConstructorLength}), ReadOnly | DontDelete | DontEnum);\n");
     }

Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestActiveDOMObject.cpp (188257 => 188258)


--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestActiveDOMObject.cpp	2015-08-11 16:51:14 UTC (rev 188257)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestActiveDOMObject.cpp	2015-08-11 16:58:57 UTC (rev 188258)
@@ -118,6 +118,7 @@
     Base::finishCreation(vm);
     ASSERT(inherits(info()));
     putDirect(vm, vm.propertyNames->prototype, JSTestActiveDOMObject::getPrototype(vm, globalObject), DontDelete | ReadOnly | DontEnum);
+    putDirect(vm, vm.propertyNames->name, jsNontrivialString(&vm, String(ASCIILiteral("TestActiveDOMObject"))), ReadOnly | DontEnum);
     putDirect(vm, vm.propertyNames->length, jsNumber(0), ReadOnly | DontDelete | DontEnum);
 }
 

Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCustomConstructorWithNoInterfaceObject.cpp (188257 => 188258)


--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCustomConstructorWithNoInterfaceObject.cpp	2015-08-11 16:51:14 UTC (rev 188257)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCustomConstructorWithNoInterfaceObject.cpp	2015-08-11 16:58:57 UTC (rev 188258)
@@ -92,6 +92,7 @@
     Base::finishCreation(vm);
     ASSERT(inherits(info()));
     putDirect(vm, vm.propertyNames->prototype, JSTestCustomConstructorWithNoInterfaceObject::getPrototype(vm, globalObject), DontDelete | ReadOnly | DontEnum);
+    putDirect(vm, vm.propertyNames->name, jsNontrivialString(&vm, String(ASCIILiteral("TestCustomConstructorWithNoInterfaceObject"))), ReadOnly | DontEnum);
     putDirect(vm, vm.propertyNames->length, jsNumber(0), ReadOnly | DontDelete | DontEnum);
 }
 

Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCustomNamedGetter.cpp (188257 => 188258)


--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCustomNamedGetter.cpp	2015-08-11 16:51:14 UTC (rev 188257)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCustomNamedGetter.cpp	2015-08-11 16:58:57 UTC (rev 188258)
@@ -112,6 +112,7 @@
     Base::finishCreation(vm);
     ASSERT(inherits(info()));
     putDirect(vm, vm.propertyNames->prototype, JSTestCustomNamedGetter::getPrototype(vm, globalObject), DontDelete | ReadOnly | DontEnum);
+    putDirect(vm, vm.propertyNames->name, jsNontrivialString(&vm, String(ASCIILiteral("TestCustomNamedGetter"))), ReadOnly | DontEnum);
     putDirect(vm, vm.propertyNames->length, jsNumber(0), ReadOnly | DontDelete | DontEnum);
 }
 

Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestEventConstructor.cpp (188257 => 188258)


--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestEventConstructor.cpp	2015-08-11 16:51:14 UTC (rev 188257)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestEventConstructor.cpp	2015-08-11 16:58:57 UTC (rev 188258)
@@ -139,6 +139,7 @@
     Base::finishCreation(vm);
     ASSERT(inherits(info()));
     putDirect(vm, vm.propertyNames->prototype, JSTestEventConstructor::getPrototype(vm, globalObject), DontDelete | ReadOnly | DontEnum);
+    putDirect(vm, vm.propertyNames->name, jsNontrivialString(&vm, String(ASCIILiteral("TestEventConstructor"))), ReadOnly | DontEnum);
     putDirect(vm, vm.propertyNames->length, jsNumber(1), ReadOnly | DontDelete | DontEnum);
 }
 

Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestEventTarget.cpp (188257 => 188258)


--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestEventTarget.cpp	2015-08-11 16:51:14 UTC (rev 188257)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestEventTarget.cpp	2015-08-11 16:58:57 UTC (rev 188258)
@@ -121,6 +121,7 @@
     Base::finishCreation(vm);
     ASSERT(inherits(info()));
     putDirect(vm, vm.propertyNames->prototype, JSTestEventTarget::getPrototype(vm, globalObject), DontDelete | ReadOnly | DontEnum);
+    putDirect(vm, vm.propertyNames->name, jsNontrivialString(&vm, String(ASCIILiteral("TestEventTarget"))), ReadOnly | DontEnum);
     putDirect(vm, vm.propertyNames->length, jsNumber(0), ReadOnly | DontDelete | DontEnum);
 }
 

Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestException.cpp (188257 => 188258)


--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestException.cpp	2015-08-11 16:51:14 UTC (rev 188257)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestException.cpp	2015-08-11 16:58:57 UTC (rev 188258)
@@ -109,6 +109,7 @@
     Base::finishCreation(vm);
     ASSERT(inherits(info()));
     putDirect(vm, vm.propertyNames->prototype, JSTestException::getPrototype(vm, globalObject), DontDelete | ReadOnly | DontEnum);
+    putDirect(vm, vm.propertyNames->name, jsNontrivialString(&vm, String(ASCIILiteral("TestException"))), ReadOnly | DontEnum);
     putDirect(vm, vm.propertyNames->length, jsNumber(0), ReadOnly | DontDelete | DontEnum);
 }
 

Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestGenerateIsReachable.cpp (188257 => 188258)


--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestGenerateIsReachable.cpp	2015-08-11 16:51:14 UTC (rev 188257)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestGenerateIsReachable.cpp	2015-08-11 16:58:57 UTC (rev 188258)
@@ -91,6 +91,7 @@
     Base::finishCreation(vm);
     ASSERT(inherits(info()));
     putDirect(vm, vm.propertyNames->prototype, JSTestGenerateIsReachable::getPrototype(vm, globalObject), DontDelete | ReadOnly | DontEnum);
+    putDirect(vm, vm.propertyNames->name, jsNontrivialString(&vm, String(ASCIILiteral("TestGenerateIsReachable"))), ReadOnly | DontEnum);
     putDirect(vm, vm.propertyNames->length, jsNumber(0), ReadOnly | DontDelete | DontEnum);
 }
 

Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestInterface.cpp (188257 => 188258)


--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestInterface.cpp	2015-08-11 16:51:14 UTC (rev 188257)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestInterface.cpp	2015-08-11 16:58:57 UTC (rev 188258)
@@ -301,6 +301,7 @@
     Base::finishCreation(vm);
     ASSERT(inherits(info()));
     putDirect(vm, vm.propertyNames->prototype, JSTestInterface::getPrototype(vm, globalObject), DontDelete | ReadOnly | DontEnum);
+    putDirect(vm, vm.propertyNames->name, jsNontrivialString(&vm, String(ASCIILiteral("TestInterface"))), ReadOnly | DontEnum);
     putDirect(vm, vm.propertyNames->length, jsNumber(1), ReadOnly | DontDelete | DontEnum);
     reifyStaticProperties(vm, JSTestInterfaceConstructorTableValues, *this);
 }

Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp (188257 => 188258)


--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp	2015-08-11 16:51:14 UTC (rev 188257)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp	2015-08-11 16:58:57 UTC (rev 188258)
@@ -98,6 +98,7 @@
     Base::finishCreation(vm);
     ASSERT(inherits(info()));
     putDirect(vm, vm.propertyNames->prototype, JSTestMediaQueryListListener::getPrototype(vm, globalObject), DontDelete | ReadOnly | DontEnum);
+    putDirect(vm, vm.propertyNames->name, jsNontrivialString(&vm, String(ASCIILiteral("TestMediaQueryListListener"))), ReadOnly | DontEnum);
     putDirect(vm, vm.propertyNames->length, jsNumber(0), ReadOnly | DontDelete | DontEnum);
 }
 

Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNamedConstructor.cpp (188257 => 188258)


--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNamedConstructor.cpp	2015-08-11 16:51:14 UTC (rev 188257)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNamedConstructor.cpp	2015-08-11 16:58:57 UTC (rev 188258)
@@ -119,6 +119,7 @@
     Base::finishCreation(vm);
     ASSERT(inherits(info()));
     putDirect(vm, vm.propertyNames->prototype, JSTestNamedConstructor::getPrototype(vm, globalObject), DontDelete | ReadOnly | DontEnum);
+    putDirect(vm, vm.propertyNames->name, jsNontrivialString(&vm, String(ASCIILiteral("TestNamedConstructor"))), ReadOnly | DontEnum);
     putDirect(vm, vm.propertyNames->length, jsNumber(0), ReadOnly | DontDelete | DontEnum);
 }
 
@@ -157,6 +158,7 @@
     Base::finishCreation(globalObject);
     ASSERT(inherits(info()));
     putDirect(vm, vm.propertyNames->prototype, JSTestNamedConstructor::getPrototype(vm, globalObject), DontDelete | ReadOnly | DontEnum);
+    putDirect(vm, vm.propertyNames->name, jsNontrivialString(&vm, String(ASCIILiteral("Audio"))), ReadOnly | DontEnum);
     putDirect(vm, vm.propertyNames->length, jsNumber(0), ReadOnly | DontDelete | DontEnum);
 }
 

Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNode.cpp (188257 => 188258)


--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNode.cpp	2015-08-11 16:51:14 UTC (rev 188257)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNode.cpp	2015-08-11 16:58:57 UTC (rev 188258)
@@ -103,6 +103,7 @@
     Base::finishCreation(vm);
     ASSERT(inherits(info()));
     putDirect(vm, vm.propertyNames->prototype, JSTestNode::getPrototype(vm, globalObject), DontDelete | ReadOnly | DontEnum);
+    putDirect(vm, vm.propertyNames->name, jsNontrivialString(&vm, String(ASCIILiteral("TestNode"))), ReadOnly | DontEnum);
     putDirect(vm, vm.propertyNames->length, jsNumber(0), ReadOnly | DontDelete | DontEnum);
 }
 

Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNondeterministic.cpp (188257 => 188258)


--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNondeterministic.cpp	2015-08-11 16:51:14 UTC (rev 188257)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNondeterministic.cpp	2015-08-11 16:58:57 UTC (rev 188258)
@@ -115,6 +115,7 @@
     Base::finishCreation(vm);
     ASSERT(inherits(info()));
     putDirect(vm, vm.propertyNames->prototype, JSTestNondeterministic::getPrototype(vm, globalObject), DontDelete | ReadOnly | DontEnum);
+    putDirect(vm, vm.propertyNames->name, jsNontrivialString(&vm, String(ASCIILiteral("TestNondeterministic"))), ReadOnly | DontEnum);
     putDirect(vm, vm.propertyNames->length, jsNumber(0), ReadOnly | DontDelete | DontEnum);
 }
 

Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp (188257 => 188258)


--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp	2015-08-11 16:51:14 UTC (rev 188257)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp	2015-08-11 16:58:57 UTC (rev 188258)
@@ -475,6 +475,7 @@
     Base::finishCreation(vm);
     ASSERT(inherits(info()));
     putDirect(vm, vm.propertyNames->prototype, JSTestObj::getPrototype(vm, globalObject), DontDelete | ReadOnly | DontEnum);
+    putDirect(vm, vm.propertyNames->name, jsNontrivialString(&vm, String(ASCIILiteral("TestObject"))), ReadOnly | DontEnum);
     putDirect(vm, vm.propertyNames->length, jsNumber(1), ReadOnly | DontDelete | DontEnum);
     reifyStaticProperties(vm, JSTestObjConstructorTableValues, *this);
 }

Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestOverloadedConstructors.cpp (188257 => 188258)


--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestOverloadedConstructors.cpp	2015-08-11 16:51:14 UTC (rev 188257)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestOverloadedConstructors.cpp	2015-08-11 16:58:57 UTC (rev 188258)
@@ -179,6 +179,7 @@
     Base::finishCreation(vm);
     ASSERT(inherits(info()));
     putDirect(vm, vm.propertyNames->prototype, JSTestOverloadedConstructors::getPrototype(vm, globalObject), DontDelete | ReadOnly | DontEnum);
+    putDirect(vm, vm.propertyNames->name, jsNontrivialString(&vm, String(ASCIILiteral("TestOverloadedConstructors"))), ReadOnly | DontEnum);
     putDirect(vm, vm.propertyNames->length, jsNumber(1), ReadOnly | DontDelete | DontEnum);
 }
 

Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.cpp (188257 => 188258)


--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.cpp	2015-08-11 16:51:14 UTC (rev 188257)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.cpp	2015-08-11 16:58:57 UTC (rev 188258)
@@ -106,6 +106,7 @@
     Base::finishCreation(vm);
     ASSERT(inherits(info()));
     putDirect(vm, vm.propertyNames->prototype, JSTestSerializedScriptValueInterface::getPrototype(vm, globalObject), DontDelete | ReadOnly | DontEnum);
+    putDirect(vm, vm.propertyNames->name, jsNontrivialString(&vm, String(ASCIILiteral("TestSerializedScriptValueInterface"))), ReadOnly | DontEnum);
     putDirect(vm, vm.propertyNames->length, jsNumber(0), ReadOnly | DontDelete | DontEnum);
 }
 

Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestTypedefs.cpp (188257 => 188258)


--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestTypedefs.cpp	2015-08-11 16:51:14 UTC (rev 188257)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestTypedefs.cpp	2015-08-11 16:58:57 UTC (rev 188258)
@@ -171,6 +171,7 @@
     Base::finishCreation(vm);
     ASSERT(inherits(info()));
     putDirect(vm, vm.propertyNames->prototype, JSTestTypedefs::getPrototype(vm, globalObject), DontDelete | ReadOnly | DontEnum);
+    putDirect(vm, vm.propertyNames->name, jsNontrivialString(&vm, String(ASCIILiteral("TestTypedefs"))), ReadOnly | DontEnum);
     putDirect(vm, vm.propertyNames->length, jsNumber(2), ReadOnly | DontDelete | DontEnum);
     reifyStaticProperties(vm, JSTestTypedefsConstructorTableValues, *this);
 }

Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSattribute.cpp (188257 => 188258)


--- trunk/Source/WebCore/bindings/scripts/test/JS/JSattribute.cpp	2015-08-11 16:51:14 UTC (rev 188257)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSattribute.cpp	2015-08-11 16:58:57 UTC (rev 188258)
@@ -95,6 +95,7 @@
     Base::finishCreation(vm);
     ASSERT(inherits(info()));
     putDirect(vm, vm.propertyNames->prototype, JSattribute::getPrototype(vm, globalObject), DontDelete | ReadOnly | DontEnum);
+    putDirect(vm, vm.propertyNames->name, jsNontrivialString(&vm, String(ASCIILiteral("attribute"))), ReadOnly | DontEnum);
     putDirect(vm, vm.propertyNames->length, jsNumber(0), ReadOnly | DontDelete | DontEnum);
 }
 

Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSreadonly.cpp (188257 => 188258)


--- trunk/Source/WebCore/bindings/scripts/test/JS/JSreadonly.cpp	2015-08-11 16:51:14 UTC (rev 188257)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSreadonly.cpp	2015-08-11 16:58:57 UTC (rev 188258)
@@ -91,6 +91,7 @@
     Base::finishCreation(vm);
     ASSERT(inherits(info()));
     putDirect(vm, vm.propertyNames->prototype, JSreadonly::getPrototype(vm, globalObject), DontDelete | ReadOnly | DontEnum);
+    putDirect(vm, vm.propertyNames->name, jsNontrivialString(&vm, String(ASCIILiteral("readonly"))), ReadOnly | DontEnum);
     putDirect(vm, vm.propertyNames->length, jsNumber(0), ReadOnly | DontDelete | DontEnum);
 }
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to