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

Unified Diff: test/message/super-in-function.js

Issue 916293004: Fix location of super syntax errors (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 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/preparser.h ('k') | test/message/super-in-function.out » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/message/super-in-function.js
diff --git a/test/mjsunit/compiler/regress-451012.js b/test/message/super-in-function.js
similarity index 76%
copy from test/mjsunit/compiler/regress-451012.js
copy to test/message/super-in-function.js
index bffc8bc5bdfac32bb561a24153d00157b26ac3a5..edaa0e4eadc7befdb7ed28a3e06eaa827c4388f0 100644
--- a/test/mjsunit/compiler/regress-451012.js
+++ b/test/message/super-in-function.js
@@ -1,12 +1,10 @@
// Copyright 2015 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+//
+// Flags: --harmony-classes
+'use strict';
-"use strict";
function f() {
- for (let v; v; ) {
- let x;
- }
+ super.x();
}
-
-f();
« no previous file with comments | « src/preparser.h ('k') | test/message/super-in-function.out » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698