Changeset 159063 in webkit
- Timestamp:
- Nov 11, 2013 12:53:13 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r159062 r159063 1 2013-11-11 Oliver Hunt <oliver@apple.com> 2 3 ExtJS breaks with modern Array.prototype.values API due to use of with() 4 https://bugs.webkit.org/show_bug.cgi?id=123440 5 6 Reviewed by Beth Dakin. 7 8 Update tests for removal of Array.prototype.values, and add test to ensure that 9 it's gone. 10 11 * js/Object-getOwnPropertyNames-expected.txt: 12 * js/array-iterators-expected.txt: 13 * js/basic-for-of-expected.txt: 14 * js/script-tests/Object-getOwnPropertyNames.js: 15 * js/script-tests/array-iterators.js: 16 * js/script-tests/basic-for-of.js: 17 1 18 2013-11-11 Oliver Hunt <oliver@apple.com> 2 19 -
trunk/LayoutTests/js/Object-getOwnPropertyNames-expected.txt
r158401 r159063 46 46 PASS getSortedOwnPropertyNames(Function.prototype) is ['apply', 'bind', 'call', 'constructor', 'length', 'name', 'toString'] 47 47 PASS getSortedOwnPropertyNames(Array) is ['isArray', 'length', 'name', 'prototype'] 48 PASS getSortedOwnPropertyNames(Array.prototype) is ['concat', 'constructor', 'entries', 'every', 'filter', 'forEach', 'indexOf', 'join', 'keys', 'lastIndexOf', 'length', 'map', 'pop', 'push', 'reduce', 'reduceRight', 'reverse', 'shift', 'slice', 'some', 'sort', 'splice', 'toLocaleString', 'toString', 'unshift' , 'values']48 PASS getSortedOwnPropertyNames(Array.prototype) is ['concat', 'constructor', 'entries', 'every', 'filter', 'forEach', 'indexOf', 'join', 'keys', 'lastIndexOf', 'length', 'map', 'pop', 'push', 'reduce', 'reduceRight', 'reverse', 'shift', 'slice', 'some', 'sort', 'splice', 'toLocaleString', 'toString', 'unshift'] 49 49 PASS getSortedOwnPropertyNames(String) is ['fromCharCode', 'length', 'name', 'prototype'] 50 50 PASS getSortedOwnPropertyNames(String.prototype) is ['anchor', 'big', 'blink', 'bold', 'charAt', 'charCodeAt', 'concat', 'constructor', 'fixed', 'fontcolor', 'fontsize', 'indexOf', 'italics', 'lastIndexOf', 'length', 'link', 'localeCompare', 'match', 'replace', 'search', 'slice', 'small', 'split', 'strike', 'sub', 'substr', 'substring', 'sup', 'toLocaleLowerCase', 'toLocaleUpperCase', 'toLowerCase', 'toString', 'toUpperCase', 'trim', 'trimLeft', 'trimRight', 'valueOf'] -
trunk/LayoutTests/js/array-iterators-expected.txt
r157267 r159063 4 4 5 5 6 PASS 'values' in [] is false 6 7 PASS key is 0 7 8 PASS key is 1 … … 10 11 PASS key is 4 11 12 PASS key is 5 12 PASS testArray.length is 613 PASS value is 114 PASS value is 215 PASS value is 316 PASS value is 417 PASS value is 518 PASS value is 619 13 PASS testArray.length is 6 20 14 PASS value is testArray[key] -
trunk/LayoutTests/js/basic-for-of-expected.txt
r156910 r159063 4 4 5 5 6 PASS value is testArray[0]7 PASS value is testArray[1]8 PASS value is testArray[2]9 PASS value is testArray[3]10 PASS value is testArray[4]11 PASS value is testArray[5]12 PASS testArray.length is 613 6 PASS value is testArray[0] 14 7 PASS value is testArray[1] -
trunk/LayoutTests/js/script-tests/Object-getOwnPropertyNames.js
r158401 r159063 54 54 "Function.prototype": "['apply', 'bind', 'call', 'constructor', 'length', 'name', 'toString']", 55 55 "Array": "['isArray', 'length', 'name', 'prototype']", 56 "Array.prototype": "['concat', 'constructor', 'entries', 'every', 'filter', 'forEach', 'indexOf', 'join', 'keys', 'lastIndexOf', 'length', 'map', 'pop', 'push', 'reduce', 'reduceRight', 'reverse', 'shift', 'slice', 'some', 'sort', 'splice', 'toLocaleString', 'toString', 'unshift' , 'values']",56 "Array.prototype": "['concat', 'constructor', 'entries', 'every', 'filter', 'forEach', 'indexOf', 'join', 'keys', 'lastIndexOf', 'length', 'map', 'pop', 'push', 'reduce', 'reduceRight', 'reverse', 'shift', 'slice', 'some', 'sort', 'splice', 'toLocaleString', 'toString', 'unshift']", 57 57 "String": "['fromCharCode', 'length', 'name', 'prototype']", 58 58 "String.prototype": "['anchor', 'big', 'blink', 'bold', 'charAt', 'charCodeAt', 'concat', 'constructor', 'fixed', 'fontcolor', 'fontsize', 'indexOf', 'italics', 'lastIndexOf', 'length', 'link', 'localeCompare', 'match', 'replace', 'search', 'slice', 'small', 'split', 'strike', 'sub', 'substr', 'substring', 'sup', 'toLocaleLowerCase', 'toLocaleUpperCase', 'toLowerCase', 'toString', 'toUpperCase', 'trim', 'trimLeft', 'trimRight', 'valueOf']", -
trunk/LayoutTests/js/script-tests/array-iterators.js
r157267 r159063 3 3 ); 4 4 5 shouldBeFalse("'values' in []"); 5 6 6 7 var testArray = [1,2,3,4,5,6] … … 10 11 shouldBe("key", String(i)) 11 12 i++; 12 }13 14 shouldBe("testArray.length", String(i))15 16 var values = testArray.values();17 var i = 0;18 for (var value of values) {19 i++;20 shouldBe("value", String(i) )21 13 } 22 14 -
trunk/LayoutTests/js/script-tests/basic-for-of.js
r156920 r159063 5 5 6 6 var testArray = [1,2,3,4,5,6] 7 8 var i = 0;9 for (var value of testArray.values())10 shouldBe("value", "testArray[" + i++ + "]")11 12 shouldBe("testArray.length", String(i))13 7 14 8 var i = 0; -
trunk/Source/JavaScriptCore/ChangeLog
r159055 r159063 1 2013-11-11 Oliver Hunt <oliver@apple.com> 2 3 ExtJS breaks with modern Array.prototype.values API due to use of with() 4 https://bugs.webkit.org/show_bug.cgi?id=123440 5 6 Reviewed by Beth Dakin. 7 8 As with our attempt to make Arguments use the Array prototype, ExtJS has 9 a weird dependency on not adding new APIs to core types. In this case 10 Array.prototype.values. The fix is to remove it, and push for ES6 to drop 11 the API. 12 13 * runtime/ArrayPrototype.cpp: 14 1 15 2013-11-11 Gabor Rapcsanyi <rgabor@webkit.org> 2 16 -
trunk/Source/JavaScriptCore/runtime/ArrayPrototype.cpp
r156910 r159063 117 117 reduceRight arrayProtoFuncReduceRight DontEnum|Function 1 118 118 map arrayProtoFuncMap DontEnum|Function 1 119 values arrayProtoFuncValues DontEnum|Function 0120 119 entries arrayProtoFuncEntries DontEnum|Function 0 121 120 keys arrayProtoFuncKeys DontEnum|Function 0
Note: See TracChangeset
for help on using the changeset viewer.