Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(665)

Unified Diff: test/mjsunit/es6/typedarray.js

Issue 2548583003: Revert of [typedarrays] remove invalid optimization in NAMEConstructor() (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/js/typedarray.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/es6/typedarray.js
diff --git a/test/mjsunit/es6/typedarray.js b/test/mjsunit/es6/typedarray.js
index ca68db96c92a486a369dfdea4e55364f69a04433..b1bd8937bea07e0028759b33fa4334043db99bb8 100644
--- a/test/mjsunit/es6/typedarray.js
+++ b/test/mjsunit/es6/typedarray.js
@@ -334,31 +334,6 @@
assertEquals(0, genArr[0]);
assertEquals(9, genArr[9]);
assertEquals(1, iteratorReadCount);
-
- // Modified %ArrayIteratorPrototype%.next() method is honoured (v8:5699)
- const ArrayIteratorPrototype = Object.getPrototypeOf([][Symbol.iterator]());
- const ArrayIteratorPrototypeNext = ArrayIteratorPrototype.next;
- ArrayIteratorPrototype.next = function() {
- return { done: true };
- };
- genArr = new constr([1, 2, 3]);
- assertEquals(0, genArr.length);
- ArrayIteratorPrototype.next = ArrayIteratorPrototypeNext;
-
- // Modified %ArrayIteratorPrototype%.next() during iteration is honoured as
- // well.
- genArr = new constr(Object.defineProperty([1, , 3], 1, {
- get() {
- ArrayIteratorPrototype.next = function() {
- return { done: true };
- }
- return 2;
- }
- }));
- assertEquals(2, genArr.length);
- assertEquals(1, genArr[0]);
- assertEquals(2, genArr[1]);
- ArrayIteratorPrototype.next = ArrayIteratorPrototypeNext;
}
TestTypedArray(Uint8Array, 1, 0xFF);
« no previous file with comments | « src/js/typedarray.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698