Changeset 206018 in webkit
- Timestamp:
- Sep 16, 2016 2:47:46 AM (8 years ago)
- Location:
- trunk
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JSTests/ChangeLog
r205974 r206018 1 2016-09-16 Joseph Pecoraro <pecoraro@apple.com> 2 3 test262: Various Constructors length properties should be configurable 4 https://bugs.webkit.org/show_bug.cgi?id=161998 5 6 Reviewed by Saam Barati. 7 8 * test262.yaml: 9 1 10 2016-09-15 Commit Queue <commit-queue@webkit.org> 2 11 -
trunk/JSTests/test262.yaml
r205969 r206018 19545 19545 cmd: runTest262 :normal, "NoException", ["../../../harness/assert.js", "../../../harness/sta.js"], [:strict] 19546 19546 - path: test262/test/built-ins/Map/length.js 19547 cmd: runTest262 : fail, "NoException", ["../../../harness/assert.js", "../../../harness/sta.js", "../../../harness/propertyHelper.js"], []19547 cmd: runTest262 :normal, "NoException", ["../../../harness/assert.js", "../../../harness/sta.js", "../../../harness/propertyHelper.js"], [] 19548 19548 - path: test262/test/built-ins/Map/length.js 19549 cmd: runTest262 : fail, "NoException", ["../../../harness/assert.js", "../../../harness/sta.js", "../../../harness/propertyHelper.js"], [:strict]19549 cmd: runTest262 :normal, "NoException", ["../../../harness/assert.js", "../../../harness/sta.js", "../../../harness/propertyHelper.js"], [:strict] 19550 19550 - path: test262/test/built-ins/Map/map-iterable-empty-does-not-call-set.js 19551 19551 cmd: runTest262 :normal, "NoException", ["../../../harness/assert.js", "../../../harness/sta.js"], [] … … 21191 21191 cmd: runTest262 :normal, "NoException", ["../../../../harness/assert.js", "../../../../harness/sta.js"], [:strict] 21192 21192 - path: test262/test/built-ins/NativeErrors/EvalError/length.js 21193 cmd: runTest262 : fail, "NoException", ["../../../../harness/assert.js", "../../../../harness/sta.js", "../../../../harness/propertyHelper.js"], []21193 cmd: runTest262 :normal, "NoException", ["../../../../harness/assert.js", "../../../../harness/sta.js", "../../../../harness/propertyHelper.js"], [] 21194 21194 - path: test262/test/built-ins/NativeErrors/EvalError/length.js 21195 cmd: runTest262 : fail, "NoException", ["../../../../harness/assert.js", "../../../../harness/sta.js", "../../../../harness/propertyHelper.js"], [:strict]21195 cmd: runTest262 :normal, "NoException", ["../../../../harness/assert.js", "../../../../harness/sta.js", "../../../../harness/propertyHelper.js"], [:strict] 21196 21196 - path: test262/test/built-ins/NativeErrors/EvalError/name.js 21197 21197 cmd: runTest262 :normal, "NoException", ["../../../../harness/assert.js", "../../../../harness/sta.js", "../../../../harness/propertyHelper.js"], [] … … 21239 21239 cmd: runTest262 :normal, "NoException", ["../../../../harness/assert.js", "../../../../harness/sta.js"], [:strict] 21240 21240 - path: test262/test/built-ins/NativeErrors/RangeError/length.js 21241 cmd: runTest262 : fail, "NoException", ["../../../../harness/assert.js", "../../../../harness/sta.js", "../../../../harness/propertyHelper.js"], []21241 cmd: runTest262 :normal, "NoException", ["../../../../harness/assert.js", "../../../../harness/sta.js", "../../../../harness/propertyHelper.js"], [] 21242 21242 - path: test262/test/built-ins/NativeErrors/RangeError/length.js 21243 cmd: runTest262 : fail, "NoException", ["../../../../harness/assert.js", "../../../../harness/sta.js", "../../../../harness/propertyHelper.js"], [:strict]21243 cmd: runTest262 :normal, "NoException", ["../../../../harness/assert.js", "../../../../harness/sta.js", "../../../../harness/propertyHelper.js"], [:strict] 21244 21244 - path: test262/test/built-ins/NativeErrors/RangeError/name.js 21245 21245 cmd: runTest262 :normal, "NoException", ["../../../../harness/assert.js", "../../../../harness/sta.js", "../../../../harness/propertyHelper.js"], [] … … 21287 21287 cmd: runTest262 :normal, "NoException", ["../../../../harness/assert.js", "../../../../harness/sta.js"], [:strict] 21288 21288 - path: test262/test/built-ins/NativeErrors/ReferenceError/length.js 21289 cmd: runTest262 : fail, "NoException", ["../../../../harness/assert.js", "../../../../harness/sta.js", "../../../../harness/propertyHelper.js"], []21289 cmd: runTest262 :normal, "NoException", ["../../../../harness/assert.js", "../../../../harness/sta.js", "../../../../harness/propertyHelper.js"], [] 21290 21290 - path: test262/test/built-ins/NativeErrors/ReferenceError/length.js 21291 cmd: runTest262 : fail, "NoException", ["../../../../harness/assert.js", "../../../../harness/sta.js", "../../../../harness/propertyHelper.js"], [:strict]21291 cmd: runTest262 :normal, "NoException", ["../../../../harness/assert.js", "../../../../harness/sta.js", "../../../../harness/propertyHelper.js"], [:strict] 21292 21292 - path: test262/test/built-ins/NativeErrors/ReferenceError/name.js 21293 21293 cmd: runTest262 :normal, "NoException", ["../../../../harness/assert.js", "../../../../harness/sta.js", "../../../../harness/propertyHelper.js"], [] … … 21335 21335 cmd: runTest262 :normal, "NoException", ["../../../../harness/assert.js", "../../../../harness/sta.js"], [:strict] 21336 21336 - path: test262/test/built-ins/NativeErrors/SyntaxError/length.js 21337 cmd: runTest262 : fail, "NoException", ["../../../../harness/assert.js", "../../../../harness/sta.js", "../../../../harness/propertyHelper.js"], []21337 cmd: runTest262 :normal, "NoException", ["../../../../harness/assert.js", "../../../../harness/sta.js", "../../../../harness/propertyHelper.js"], [] 21338 21338 - path: test262/test/built-ins/NativeErrors/SyntaxError/length.js 21339 cmd: runTest262 : fail, "NoException", ["../../../../harness/assert.js", "../../../../harness/sta.js", "../../../../harness/propertyHelper.js"], [:strict]21339 cmd: runTest262 :normal, "NoException", ["../../../../harness/assert.js", "../../../../harness/sta.js", "../../../../harness/propertyHelper.js"], [:strict] 21340 21340 - path: test262/test/built-ins/NativeErrors/SyntaxError/name.js 21341 21341 cmd: runTest262 :normal, "NoException", ["../../../../harness/assert.js", "../../../../harness/sta.js", "../../../../harness/propertyHelper.js"], [] … … 21383 21383 cmd: runTest262 :normal, "NoException", ["../../../../harness/assert.js", "../../../../harness/sta.js"], [:strict] 21384 21384 - path: test262/test/built-ins/NativeErrors/TypeError/length.js 21385 cmd: runTest262 : fail, "NoException", ["../../../../harness/assert.js", "../../../../harness/sta.js", "../../../../harness/propertyHelper.js"], []21385 cmd: runTest262 :normal, "NoException", ["../../../../harness/assert.js", "../../../../harness/sta.js", "../../../../harness/propertyHelper.js"], [] 21386 21386 - path: test262/test/built-ins/NativeErrors/TypeError/length.js 21387 cmd: runTest262 : fail, "NoException", ["../../../../harness/assert.js", "../../../../harness/sta.js", "../../../../harness/propertyHelper.js"], [:strict]21387 cmd: runTest262 :normal, "NoException", ["../../../../harness/assert.js", "../../../../harness/sta.js", "../../../../harness/propertyHelper.js"], [:strict] 21388 21388 - path: test262/test/built-ins/NativeErrors/TypeError/name.js 21389 21389 cmd: runTest262 :normal, "NoException", ["../../../../harness/assert.js", "../../../../harness/sta.js", "../../../../harness/propertyHelper.js"], [] … … 21431 21431 cmd: runTest262 :normal, "NoException", ["../../../../harness/assert.js", "../../../../harness/sta.js"], [:strict] 21432 21432 - path: test262/test/built-ins/NativeErrors/URIError/length.js 21433 cmd: runTest262 : fail, "NoException", ["../../../../harness/assert.js", "../../../../harness/sta.js", "../../../../harness/propertyHelper.js"], []21433 cmd: runTest262 :normal, "NoException", ["../../../../harness/assert.js", "../../../../harness/sta.js", "../../../../harness/propertyHelper.js"], [] 21434 21434 - path: test262/test/built-ins/NativeErrors/URIError/length.js 21435 cmd: runTest262 : fail, "NoException", ["../../../../harness/assert.js", "../../../../harness/sta.js", "../../../../harness/propertyHelper.js"], [:strict]21435 cmd: runTest262 :normal, "NoException", ["../../../../harness/assert.js", "../../../../harness/sta.js", "../../../../harness/propertyHelper.js"], [:strict] 21436 21436 - path: test262/test/built-ins/NativeErrors/URIError/name.js 21437 21437 cmd: runTest262 :normal, "NoException", ["../../../../harness/assert.js", "../../../../harness/sta.js", "../../../../harness/propertyHelper.js"], [] … … 35031 35031 cmd: runTest262 :normal, "NoException", ["../../../harness/assert.js", "../../../harness/sta.js"], [:strict] 35032 35032 - path: test262/test/built-ins/Promise/length.js 35033 cmd: runTest262 : fail, "NoException", ["../../../harness/assert.js", "../../../harness/sta.js", "../../../harness/propertyHelper.js"], []35033 cmd: runTest262 :normal, "NoException", ["../../../harness/assert.js", "../../../harness/sta.js", "../../../harness/propertyHelper.js"], [] 35034 35034 - path: test262/test/built-ins/Promise/length.js 35035 cmd: runTest262 : fail, "NoException", ["../../../harness/assert.js", "../../../harness/sta.js", "../../../harness/propertyHelper.js"], [:strict]35035 cmd: runTest262 :normal, "NoException", ["../../../harness/assert.js", "../../../harness/sta.js", "../../../harness/propertyHelper.js"], [:strict] 35036 35036 - path: test262/test/built-ins/Promise/name.js 35037 35037 cmd: runTest262 :normal, "NoException", ["../../../harness/assert.js", "../../../harness/sta.js", "../../../harness/propertyHelper.js"], [] … … 36341 36341 cmd: runTest262 :normal, "NoException", ["../../../../harness/assert.js", "../../../../harness/sta.js"], [:strict] 36342 36342 - path: test262/test/built-ins/Proxy/length.js 36343 cmd: runTest262 : fail, "NoException", ["../../../harness/assert.js", "../../../harness/sta.js", "../../../harness/propertyHelper.js"], []36343 cmd: runTest262 :normal, "NoException", ["../../../harness/assert.js", "../../../harness/sta.js", "../../../harness/propertyHelper.js"], [] 36344 36344 - path: test262/test/built-ins/Proxy/length.js 36345 cmd: runTest262 : fail, "NoException", ["../../../harness/assert.js", "../../../harness/sta.js", "../../../harness/propertyHelper.js"], [:strict]36345 cmd: runTest262 :normal, "NoException", ["../../../harness/assert.js", "../../../harness/sta.js", "../../../harness/propertyHelper.js"], [:strict] 36346 36346 - path: test262/test/built-ins/Proxy/name.js 36347 36347 cmd: runTest262 :normal, "NoException", ["../../../harness/assert.js", "../../../harness/sta.js", "../../../harness/propertyHelper.js"], [] … … 40317 40317 cmd: runTest262 :normal, "NoException", ["../../../harness/assert.js", "../../../harness/sta.js"], [:strict] 40318 40318 - path: test262/test/built-ins/Set/length.js 40319 cmd: runTest262 : fail, "NoException", ["../../../harness/assert.js", "../../../harness/sta.js", "../../../harness/propertyHelper.js"], []40319 cmd: runTest262 :normal, "NoException", ["../../../harness/assert.js", "../../../harness/sta.js", "../../../harness/propertyHelper.js"], [] 40320 40320 - path: test262/test/built-ins/Set/length.js 40321 cmd: runTest262 : fail, "NoException", ["../../../harness/assert.js", "../../../harness/sta.js", "../../../harness/propertyHelper.js"], [:strict]40321 cmd: runTest262 :normal, "NoException", ["../../../harness/assert.js", "../../../harness/sta.js", "../../../harness/propertyHelper.js"], [:strict] 40322 40322 - path: test262/test/built-ins/Set/name.js 40323 40323 cmd: runTest262 :normal, "NoException", ["../../../harness/assert.js", "../../../harness/sta.js", "../../../harness/propertyHelper.js"], [] … … 49263 49263 cmd: runTest262 :normal, "NoException", ["../../../harness/assert.js", "../../../harness/sta.js"], [:strict] 49264 49264 - path: test262/test/built-ins/WeakMap/length.js 49265 cmd: runTest262 : fail, "NoException", ["../../../harness/assert.js", "../../../harness/sta.js", "../../../harness/propertyHelper.js"], []49265 cmd: runTest262 :normal, "NoException", ["../../../harness/assert.js", "../../../harness/sta.js", "../../../harness/propertyHelper.js"], [] 49266 49266 - path: test262/test/built-ins/WeakMap/length.js 49267 cmd: runTest262 : fail, "NoException", ["../../../harness/assert.js", "../../../harness/sta.js", "../../../harness/propertyHelper.js"], [:strict]49267 cmd: runTest262 :normal, "NoException", ["../../../harness/assert.js", "../../../harness/sta.js", "../../../harness/propertyHelper.js"], [:strict] 49268 49268 - path: test262/test/built-ins/WeakMap/name.js 49269 49269 cmd: runTest262 :normal, "NoException", ["../../../harness/assert.js", "../../../harness/sta.js", "../../../harness/propertyHelper.js"], [] … … 49599 49599 cmd: runTest262 :normal, "NoException", ["../../../harness/assert.js", "../../../harness/sta.js"], [:strict] 49600 49600 - path: test262/test/built-ins/WeakSet/length.js 49601 cmd: runTest262 : fail, "NoException", ["../../../harness/assert.js", "../../../harness/sta.js", "../../../harness/propertyHelper.js"], []49601 cmd: runTest262 :normal, "NoException", ["../../../harness/assert.js", "../../../harness/sta.js", "../../../harness/propertyHelper.js"], [] 49602 49602 - path: test262/test/built-ins/WeakSet/length.js 49603 cmd: runTest262 : fail, "NoException", ["../../../harness/assert.js", "../../../harness/sta.js", "../../../harness/propertyHelper.js"], [:strict]49603 cmd: runTest262 :normal, "NoException", ["../../../harness/assert.js", "../../../harness/sta.js", "../../../harness/propertyHelper.js"], [:strict] 49604 49604 - path: test262/test/built-ins/WeakSet/name.js 49605 49605 cmd: runTest262 :normal, "NoException", ["../../../harness/assert.js", "../../../harness/sta.js", "../../../harness/propertyHelper.js"], [] -
trunk/Source/JavaScriptCore/ChangeLog
r206011 r206018 1 2016-09-16 Joseph Pecoraro <pecoraro@apple.com> 2 3 test262: Various Constructors length properties should be configurable 4 https://bugs.webkit.org/show_bug.cgi?id=161998 5 6 Reviewed by Saam Barati. 7 8 https://tc39.github.io/ecma262/#sec-ecmascript-standard-built-in-objects 9 Unless otherwise specified, the length property of a built-in Function 10 object has the attributes: 11 { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: true }. 12 13 * runtime/ErrorConstructor.cpp: 14 (JSC::ErrorConstructor::finishCreation): 15 * runtime/JSPromiseConstructor.cpp: 16 (JSC::JSPromiseConstructor::finishCreation): 17 * runtime/MapConstructor.cpp: 18 (JSC::MapConstructor::finishCreation): 19 * runtime/NativeErrorConstructor.cpp: 20 (JSC::NativeErrorConstructor::finishCreation): 21 * runtime/ProxyConstructor.cpp: 22 (JSC::ProxyConstructor::finishCreation): 23 * runtime/SetConstructor.cpp: 24 (JSC::SetConstructor::finishCreation): 25 * runtime/WeakMapConstructor.cpp: 26 (JSC::WeakMapConstructor::finishCreation): 27 * runtime/WeakSetConstructor.cpp: 28 (JSC::WeakSetConstructor::finishCreation): 29 1 30 2016-09-16 Youenn Fablet <youenn@apple.com> 2 31 -
trunk/Source/JavaScriptCore/runtime/ErrorConstructor.cpp
r205569 r206018 44 44 // ECMA 15.11.3.1 Error.prototype 45 45 putDirectWithoutTransition(vm, vm.propertyNames->prototype, errorPrototype, DontEnum | DontDelete | ReadOnly); 46 putDirectWithoutTransition(vm, vm.propertyNames->length, jsNumber(1), Dont Delete | ReadOnly | DontEnum);46 putDirectWithoutTransition(vm, vm.propertyNames->length, jsNumber(1), DontEnum | ReadOnly); 47 47 } 48 48 -
trunk/Source/JavaScriptCore/runtime/JSPromiseConstructor.cpp
r205569 r206018 83 83 Base::finishCreation(vm, ASCIILiteral("Promise")); 84 84 putDirectWithoutTransition(vm, vm.propertyNames->prototype, promisePrototype, DontEnum | DontDelete | ReadOnly); 85 putDirectWithoutTransition(vm, vm.propertyNames->length, jsNumber(1), ReadOnly | DontEnum | DontDelete);85 putDirectWithoutTransition(vm, vm.propertyNames->length, jsNumber(1), DontEnum | ReadOnly); 86 86 putDirectNonIndexAccessor(vm, vm.propertyNames->speciesSymbol, speciesSymbol, Accessor | ReadOnly | DontEnum); 87 87 } -
trunk/Source/JavaScriptCore/runtime/MapConstructor.cpp
r205569 r206018 44 44 Base::finishCreation(vm, mapPrototype->classInfo()->className); 45 45 putDirectWithoutTransition(vm, vm.propertyNames->prototype, mapPrototype, DontEnum | DontDelete | ReadOnly); 46 putDirectWithoutTransition(vm, vm.propertyNames->length, jsNumber(0), ReadOnly | DontEnum | DontDelete);46 putDirectWithoutTransition(vm, vm.propertyNames->length, jsNumber(0), DontEnum | ReadOnly); 47 47 putDirectNonIndexAccessor(vm, vm.propertyNames->speciesSymbol, speciesSymbol, Accessor | ReadOnly | DontEnum); 48 48 } -
trunk/Source/JavaScriptCore/runtime/NativeErrorConstructor.cpp
r205569 r206018 47 47 NativeErrorPrototype* prototype = NativeErrorPrototype::create(vm, prototypeStructure, name, this); 48 48 49 putDirect(vm, vm.propertyNames->length, jsNumber(1), Dont Delete | ReadOnly | DontEnum); // ECMA 15.11.7.549 putDirect(vm, vm.propertyNames->length, jsNumber(1), DontEnum | ReadOnly); 50 50 putDirect(vm, vm.propertyNames->prototype, prototype, DontDelete | ReadOnly | DontEnum); 51 51 m_errorStructure.set(vm, this, ErrorInstance::createStructure(vm, globalObject, prototype)); -
trunk/Source/JavaScriptCore/runtime/ProxyConstructor.cpp
r205569 r206018 90 90 Base::finishCreation(vm, name); 91 91 92 putDirect(vm, vm.propertyNames->length, jsNumber(2), ReadOnly | DontDelete | DontEnum);92 putDirect(vm, vm.propertyNames->length, jsNumber(2), DontEnum | ReadOnly); 93 93 putDirect(vm, makeIdentifier(vm, "revocable"), JSFunction::create(vm, globalObject, 2, ASCIILiteral("revocable"), makeRevocableProxy, NoIntrinsic, proxyRevocableConstructorThrowError)); 94 94 } -
trunk/Source/JavaScriptCore/runtime/SetConstructor.cpp
r205654 r206018 44 44 Base::finishCreation(vm, setPrototype->classInfo()->className); 45 45 putDirectWithoutTransition(vm, vm.propertyNames->prototype, setPrototype, DontEnum | DontDelete | ReadOnly); 46 putDirectWithoutTransition(vm, vm.propertyNames->length, jsNumber(0), ReadOnly | DontEnum | DontDelete);46 putDirectWithoutTransition(vm, vm.propertyNames->length, jsNumber(0), DontEnum | ReadOnly); 47 47 putDirectNonIndexAccessor(vm, vm.propertyNames->speciesSymbol, speciesSymbol, Accessor | ReadOnly | DontEnum); 48 48 } -
trunk/Source/JavaScriptCore/runtime/WeakMapConstructor.cpp
r205569 r206018 43 43 Base::finishCreation(vm, prototype->classInfo()->className); 44 44 putDirectWithoutTransition(vm, vm.propertyNames->prototype, prototype, DontEnum | DontDelete | ReadOnly); 45 putDirectWithoutTransition(vm, vm.propertyNames->length, jsNumber(0), ReadOnly | DontEnum | DontDelete);45 putDirectWithoutTransition(vm, vm.propertyNames->length, jsNumber(0), DontEnum | ReadOnly); 46 46 } 47 47 -
trunk/Source/JavaScriptCore/runtime/WeakSetConstructor.cpp
r205569 r206018 43 43 Base::finishCreation(vm, prototype->classInfo()->className); 44 44 putDirectWithoutTransition(vm, vm.propertyNames->prototype, prototype, DontEnum | DontDelete | ReadOnly); 45 putDirectWithoutTransition(vm, vm.propertyNames->length, jsNumber(0), ReadOnly | DontEnum | DontDelete);45 putDirectWithoutTransition(vm, vm.propertyNames->length, jsNumber(0), DontEnum | ReadOnly); 46 46 } 47 47
Note: See TracChangeset
for help on using the changeset viewer.