Changeset 276612 in webkit
- Timestamp:
- Apr 26, 2021 2:03:49 PM (3 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JSTests/ChangeLog
r276592 r276612 1 2021-04-26 Mark Lam <mark.lam@apple.com> 2 3 %TypedArray%.prototype.sort() should not use a regular array as a temp buffer. 4 https://bugs.webkit.org/show_bug.cgi?id=225062 5 rdar://77021547 6 7 Reviewed by Yusuke Suzuki. 8 9 * stress/typedarray-sort-should-not-use-a-regular-array-as-temp-buffer.js: Added. 10 1 11 2021-04-26 Alexey Shvayka <shvaikalesh@gmail.com> 2 12 -
trunk/Source/JavaScriptCore/ChangeLog
r276610 r276612 1 2021-04-26 Mark Lam <mark.lam@apple.com> 2 3 %TypedArray%.prototype.sort() should not use a regular array as a temp buffer. 4 https://bugs.webkit.org/show_bug.cgi?id=225062 5 rdar://77021547 6 7 Reviewed by Yusuke Suzuki. 8 9 %TypedArray%.prototype.sort() should not be affected by property changes in 10 Array.prototype. 11 12 References: 13 [1] https://tc39.es/ecma262/#sec-%typedarray%.prototype.sort 14 [2] https://tc39.es/ecma262/#sec-array.prototype.sort 15 [3] https://tc39.es/ecma262/#sec-sortcompare 16 17 * builtins/TypedArrayPrototype.js: 18 (globalPrivate.typedArrayMergeSort): 19 1 20 2021-04-26 Keith Miller <keith_miller@apple.com> 2 21 -
trunk/Source/JavaScriptCore/builtins/TypedArrayPrototype.js
r272471 r276612 174 174 "use strict"; 175 175 176 var buffer = @newArrayWithSize(valueCount); 176 var constructor = @typedArrayGetOriginalConstructor(array); 177 var buffer = new constructor(valueCount); 177 178 var dst = buffer; 178 179 var src = array;
Note: See TracChangeset
for help on using the changeset viewer.