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

Unified Diff: test/mjsunit/es6/legacy-subclassing.js

Issue 1583773005: Construct instances of base class from TypedArray.prototype.subarray (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add test case in bug as a regression test Created 4 years, 11 months 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') | test/mjsunit/regress/regress-4665.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/es6/legacy-subclassing.js
diff --git a/test/mjsunit/es6/legacy-subclassing.js b/test/mjsunit/es6/legacy-subclassing.js
index 73b684f99461237f55446e4340a61063effd6b71..dbf666d07c9d060d52e3de29fb57e17def7fbd5f 100644
--- a/test/mjsunit/es6/legacy-subclassing.js
+++ b/test/mjsunit/es6/legacy-subclassing.js
@@ -33,3 +33,6 @@ class MyPromise extends Promise { }
let myPromise = new MyPromise(() => {});
assertEquals(MyPromise, myPromise.constructor);
assertEquals(MyPromise, myPromise.then().constructor);
+
+// However, subarray instantiates members of the parent class
+assertEquals(Uint8Array, myTypedArray.subarray(1).constructor);
« no previous file with comments | « src/js/typedarray.js ('k') | test/mjsunit/regress/regress-4665.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698