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

Unified Diff: test/mjsunit/harmony/super.js

Issue 1366063002: [es6] Remove left-overs from Function.prototype.toMethod. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 3 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 | « test/mjsunit/es6/toMethod.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/harmony/super.js
diff --git a/test/mjsunit/harmony/super.js b/test/mjsunit/harmony/super.js
index 601addaa0ef4098ea2fa5ab7fa55f61916b30faa..f7584702b603270446725bc30b233c4dc90f6bc5 100644
--- a/test/mjsunit/harmony/super.js
+++ b/test/mjsunit/harmony/super.js
@@ -81,39 +81,6 @@
}());
-(function TestSuperNumericKeyedLoads() {
- var x = 1;
- var derivedDataProperty = 2;
- var f = 3;
-
- function Base() { }
- function fBase() { return "Base " + this.toString(); }
- Base.prototype[f] = %ToMethod(fBase, Base.prototype);
- Base.prototype[x] = 15;
- Base.prototype.toString = function() { return "this is Base"; };
-
- function Derived() {
- this[derivedDataProperty] = "xxx";
- }
- Derived.prototype = {
- __proto__: Base.prototype,
- toString() { return "this is Derived"; },
- 1: 27,
- 3() {
- assertEquals("Base this is Derived", super[f]());
- var a = super[x];
- assertEquals(15, a);
- assertEquals(15, super[x]);
- assertEquals(27, this[x]);
- return "Derived";
- }
- };
-
- assertEquals("Base this is Base", new Base()[f]());
- assertEquals("Derived", new Derived()[f]());
-}());
-
-
(function TestSuperKeywordNonMethod() {
'use strict';
« no previous file with comments | « test/mjsunit/es6/toMethod.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698