Changeset 160592 in webkit
- Timestamp:
- Dec 13, 2013 11:53:44 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r160588 r160592 1 2013-12-13 Joseph Pecoraro <pecoraro@apple.com> 2 3 Some Set and Map prototype functions have incorrect function lengths 4 https://bugs.webkit.org/show_bug.cgi?id=125732 5 6 Reviewed by Oliver Hunt. 7 8 * js/basic-map-expected.txt: 9 * js/basic-set-expected.txt: 10 * js/script-tests/basic-map.js: 11 * js/script-tests/basic-set.js: 12 1 13 2013-12-13 Joseph Pecoraro <pecoraro@apple.com> 2 14 -
trunk/LayoutTests/js/basic-map-expected.txt
r159008 r160592 20 20 PASS Map.prototype.hasOwnProperty('size') is true 21 21 PASS Map.prototype.size threw exception TypeError: Map operation called on non-Map object. 22 PASS Map.prototype.set.length is 2 23 PASS Map.prototype.has.length is 1 24 PASS Map.prototype.get.length is 1 25 PASS Map.prototype.clear.length is 0 26 PASS Map.prototype.keys.length is 0 27 PASS Map.prototype.values.length is 0 28 PASS Map.prototype.entries.length is 0 22 29 PASS map.size is 0 23 30 PASS map.set(-0, 1) is map -
trunk/LayoutTests/js/basic-set-expected.txt
r159031 r160592 27 27 PASS Object.hasOwnProperty(set, 'size') is false 28 28 PASS Set.prototype.hasOwnProperty('size') is true 29 PASS Map.prototype.size threw exception TypeError: Map operation called on non-Map object. 29 PASS Set.prototype.size threw exception TypeError: Set operation called on non-Set object. 30 PASS Set.prototype.add.length is 1 31 PASS Set.prototype.has.length is 1 32 PASS Set.prototype.clear.length is 0 33 PASS Set.prototype.keys.length is 0 34 PASS Set.prototype.values.length is 0 35 PASS Set.prototype.entries.length is 0 30 36 PASS set.size is 0 31 37 PASS set.add(-0) is set -
trunk/LayoutTests/js/script-tests/basic-map.js
r159008 r160592 22 22 shouldBeTrue("Map.prototype.hasOwnProperty('size')") 23 23 shouldThrow("Map.prototype.size") 24 25 shouldBe("Map.prototype.set.length", "2") 26 shouldBe("Map.prototype.has.length", "1") 27 shouldBe("Map.prototype.get.length", "1") 28 shouldBe("Map.prototype.clear.length", "0") 29 shouldBe("Map.prototype.keys.length", "0") 30 shouldBe("Map.prototype.values.length", "0") 31 shouldBe("Map.prototype.entries.length", "0") 32 24 33 shouldBe("map.size", "0") 25 34 shouldBe("map.set(-0, 1)", "map") -
trunk/LayoutTests/js/script-tests/basic-set.js
r159031 r160592 26 26 shouldBeFalse("Object.hasOwnProperty(set, 'size')") 27 27 shouldBeTrue("Set.prototype.hasOwnProperty('size')") 28 shouldThrow("Map.prototype.size") 28 shouldThrow("Set.prototype.size") 29 30 shouldBe("Set.prototype.add.length", "1") 31 shouldBe("Set.prototype.has.length", "1") 32 shouldBe("Set.prototype.clear.length", "0") 33 shouldBe("Set.prototype.keys.length", "0") 34 shouldBe("Set.prototype.values.length", "0") 35 shouldBe("Set.prototype.entries.length", "0") 36 29 37 shouldBe("set.size", "0") 30 38 shouldBe("set.add(-0)", "set") -
trunk/Source/JavaScriptCore/ChangeLog
r160588 r160592 1 2013-12-13 Joseph Pecoraro <pecoraro@apple.com> 2 3 Some Set and Map prototype functions have incorrect function lengths 4 https://bugs.webkit.org/show_bug.cgi?id=125732 5 6 Reviewed by Oliver Hunt. 7 8 * runtime/MapPrototype.cpp: 9 (JSC::MapPrototype::finishCreation): 10 * runtime/SetPrototype.cpp: 11 (JSC::SetPrototype::finishCreation): 12 1 13 2013-12-13 Joseph Pecoraro <pecoraro@apple.com> 2 14 -
trunk/Source/JavaScriptCore/runtime/MapPrototype.cpp
r159008 r160592 65 65 JSC_NATIVE_FUNCTION(vm.propertyNames->has, mapProtoFuncHas, DontEnum, 1); 66 66 JSC_NATIVE_FUNCTION(vm.propertyNames->set, mapProtoFuncSet, DontEnum, 2); 67 JSC_NATIVE_FUNCTION(vm.propertyNames->keys, mapProtoFuncKeys, DontEnum, 2);68 JSC_NATIVE_FUNCTION(vm.propertyNames->values, mapProtoFuncValues, DontEnum, 2);69 JSC_NATIVE_FUNCTION(vm.propertyNames->entries, mapProtoFuncEntries, DontEnum, 2);70 JSC_NATIVE_FUNCTION(vm.propertyNames->iteratorPrivateName, mapProtoFuncEntries, DontEnum, 2);67 JSC_NATIVE_FUNCTION(vm.propertyNames->keys, mapProtoFuncKeys, DontEnum, 0); 68 JSC_NATIVE_FUNCTION(vm.propertyNames->values, mapProtoFuncValues, DontEnum, 0); 69 JSC_NATIVE_FUNCTION(vm.propertyNames->entries, mapProtoFuncEntries, DontEnum, 0); 70 JSC_NATIVE_FUNCTION(vm.propertyNames->iteratorPrivateName, mapProtoFuncEntries, DontEnum, 0); 71 71 72 72 GetterSetter* accessor = GetterSetter::create(vm); -
trunk/Source/JavaScriptCore/runtime/SetPrototype.cpp
r159031 r160592 59 59 vm.prototypeMap.addPrototype(this); 60 60 61 JSC_NATIVE_FUNCTION(vm.propertyNames->add, setProtoFuncAdd, DontEnum, 0);62 JSC_NATIVE_FUNCTION(vm.propertyNames->clear, setProtoFuncClear, DontEnum, 1);61 JSC_NATIVE_FUNCTION(vm.propertyNames->add, setProtoFuncAdd, DontEnum, 1); 62 JSC_NATIVE_FUNCTION(vm.propertyNames->clear, setProtoFuncClear, DontEnum, 0); 63 63 JSC_NATIVE_FUNCTION(vm.propertyNames->deleteKeyword, setProtoFuncDelete, DontEnum, 1); 64 64 JSC_NATIVE_FUNCTION(vm.propertyNames->forEach, setProtoFuncForEach, DontEnum, 1);
Note: See TracChangeset
for help on using the changeset viewer.