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

Side by Side Diff: test/mjsunit/es6/classes-derived-return-type.js

Issue 1551443002: Ship ES2015 sloppy-mode function hoisting, let, class (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Re-add another 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Flags: --harmony-sloppy 5 // Flags: --harmony-sloppy
6 6
7 7
8 class Base {} 8 class Base {}
9 9
10 class DerivedWithReturn extends Base { 10 class DerivedWithReturn extends Base {
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 81
82 82
83 class DerivedReturnThis extends Base { 83 class DerivedReturnThis extends Base {
84 constructor() { 84 constructor() {
85 super(); 85 super();
86 return this; 86 return this;
87 } 87 }
88 } 88 }
89 89
90 assertInstanceof(new DerivedReturnThis(), DerivedReturnThis); 90 assertInstanceof(new DerivedReturnThis(), DerivedReturnThis);
OLDNEW
« no previous file with comments | « test/mjsunit/es6/block-scope-class.js ('k') | test/mjsunit/harmony/block-eval-var-over-legacy-const.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698