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

Unified Diff: test/mjsunit/harmony/do-expressions.js

Issue 1415283003: Adapt tests in preparation of shipping --harmony-completion. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Address comments. Created 5 years, 2 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/block-for.js ('k') | test/webkit/eval-throw-return.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/harmony/do-expressions.js
diff --git a/test/mjsunit/harmony/do-expressions.js b/test/mjsunit/harmony/do-expressions.js
index a2c014cbc6f523e7bbba07a2bc5323fa548cd8a7..c3f9e0cd86ae9f458867332e2d5e545cac6cadef 100644
--- a/test/mjsunit/harmony/do-expressions.js
+++ b/test/mjsunit/harmony/do-expressions.js
@@ -4,6 +4,7 @@
// Flags: --harmony-do-expressions --harmony-sloppy-let --allow-natives-syntax
// Flags: --harmony-default-parameters --harmony-destructuring
+// Flags: --harmony-completion
function returnValue(v) { return v; }
function MyError() {}
@@ -167,7 +168,10 @@ function TestInParameterInitializers() {
function fn2(items = do {
let items = [];
for (var el of _items) {
- if (el !== el) break;
+ if (el !== el) {
+ items;
+ break;
+ }
items.push(el), items;
}
}) {
« no previous file with comments | « test/mjsunit/es6/block-for.js ('k') | test/webkit/eval-throw-return.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698