test262: test262/test/built-ins/Array/S15.4.3_A2.2.js
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 11 Apr 2017 16:38:43 +0000 (16:38 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 11 Apr 2017 16:38:43 +0000 (16:38 +0000)
commit1e4f992ae9e2d604d17fb2857fe203ed6db3cbb3
treed7de9d699e37670f6727fcad3246502347533fca
parentbb2685514e7c3f195679824a29b9503b4d23aeda
test262: test262/test/built-ins/Array/S15.4.3_A2.2.js
https://bugs.webkit.org/show_bug.cgi?id=170652

Patch by Joseph Pecoraro <pecoraro@apple.com> on 2017-04-11
Reviewed by Michael Saboff.

JSTests:

* stress/native-constructors-length.js: Added.
(assertLengthDescriptorAttributes):
Add a quick test for the length properties of all native constructors.

* ChakraCore/test/es5/enumerable.baseline-jsc:
Rebaseline expectations for this test.

* test262.yaml:

Source/JavaScriptCore:

* runtime/ArrayConstructor.cpp:
(JSC::ArrayConstructor::finishCreation):
* runtime/BooleanConstructor.cpp:
(JSC::BooleanConstructor::finishCreation):
* runtime/DateConstructor.cpp:
(JSC::DateConstructor::finishCreation):
* runtime/FunctionConstructor.cpp:
(JSC::FunctionConstructor::finishCreation):
* runtime/JSArrayBufferConstructor.cpp:
(JSC::JSArrayBufferConstructor::finishCreation):
* runtime/NumberConstructor.cpp:
(JSC::NumberConstructor::finishCreation):
* runtime/ObjectConstructor.cpp:
(JSC::ObjectConstructor::finishCreation):
* runtime/RegExpConstructor.cpp:
(JSC::RegExpConstructor::finishCreation):
* runtime/StringConstructor.cpp:
(JSC::StringConstructor::finishCreation):
* runtime/SymbolConstructor.cpp:
(JSC::SymbolConstructor::finishCreation):
Ensure the "length" property on these native constructors is configurable (deletable).

LayoutTests:

* ietestcenter/Javascript/15.2.3.3-4-186-expected.txt:
* ietestcenter/Javascript/15.2.3.3-4-191-expected.txt:
* ietestcenter/Javascript/15.2.3.3-4-194-expected.txt:
* ietestcenter/Javascript/15.2.3.3-4-201-expected.txt:
* ietestcenter/Javascript/15.3.3.2-1-expected.txt:
* sputnik/Conformance/15_Native_Objects/15.4_Array/15.4.3/S15.4.3_A2.2-expected.txt:
* sputnik/Conformance/15_Native_Objects/15.9_Date/15.9.5/15.9.5.1_Date.prototype.constructor/S15.9.5.1_A3_T2-expected.txt:
These tests expected the opposite, they are now out of date.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@215234 268f45cc-cd09-0410-ab3c-d52691b4dbfc
25 files changed:
JSTests/ChakraCore/test/es5/enumerable.baseline-jsc
JSTests/ChangeLog
JSTests/stress/native-constructors-length.js [new file with mode: 0644]
JSTests/test262.yaml
LayoutTests/ChangeLog
LayoutTests/ietestcenter/Javascript/15.2.3.3-4-186-expected.txt
LayoutTests/ietestcenter/Javascript/15.2.3.3-4-191-expected.txt
LayoutTests/ietestcenter/Javascript/15.2.3.3-4-194-expected.txt
LayoutTests/ietestcenter/Javascript/15.2.3.3-4-201-expected.txt
LayoutTests/ietestcenter/Javascript/15.3.3.2-1-expected.txt
LayoutTests/sputnik/Conformance/15_Native_Objects/15.4_Array/15.4.3/S15.4.3_A2.2-expected.txt
LayoutTests/sputnik/Conformance/15_Native_Objects/15.9_Date/15.9.5/15.9.5.1_Date.prototype.constructor/S15.9.5.1_A3_T2-expected.txt
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/runtime/ArrayConstructor.cpp
Source/JavaScriptCore/runtime/AsyncFunctionConstructor.cpp
Source/JavaScriptCore/runtime/BooleanConstructor.cpp
Source/JavaScriptCore/runtime/DateConstructor.cpp
Source/JavaScriptCore/runtime/FunctionConstructor.cpp
Source/JavaScriptCore/runtime/GeneratorFunctionConstructor.cpp
Source/JavaScriptCore/runtime/JSArrayBufferConstructor.cpp
Source/JavaScriptCore/runtime/NumberConstructor.cpp
Source/JavaScriptCore/runtime/ObjectConstructor.cpp
Source/JavaScriptCore/runtime/RegExpConstructor.cpp
Source/JavaScriptCore/runtime/StringConstructor.cpp
Source/JavaScriptCore/runtime/SymbolConstructor.cpp