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

Side by Side Diff: test/mjsunit/es6/destructuring-assignment-lazy.js

Issue 1776683003: Remove destructuring and default arguments runtime flags (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased Created 4 years, 9 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-destructuring-assignment --harmony-destructuring-bind
6 // Flags: --min-preparse-length=0 5 // Flags: --min-preparse-length=0
7 6
8 function f() { 7 function f() {
9 var a, b; 8 var a, b;
10 [ a, b ] = [1, 2]; 9 [ a, b ] = [1, 2];
11 assertEquals(1, a); 10 assertEquals(1, a);
12 assertEquals(2, b); 11 assertEquals(2, b);
13 } 12 }
14 13
15 f(); 14 f();
OLDNEW
« no previous file with comments | « test/mjsunit/es6/destructuring-assignment.js ('k') | test/mjsunit/es6/destructuring-parameters-literalcount.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698