| OLD | NEW |
| 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-arrow-functions --harmony-classes | 5 // Flags: --harmony-arrow-functions |
| 6 | 6 |
| 7 | 7 |
| 8 (function testInFunctionDeclaration() { | 8 (function testInFunctionDeclaration() { |
| 9 var calls = 0; | 9 var calls = 0; |
| 10 function f() { | 10 function f() { |
| 11 (() => { | 11 (() => { |
| 12 calls++; | 12 calls++; |
| 13 assertEquals(2, arguments.length); | 13 assertEquals(2, arguments.length); |
| 14 assertEquals('a', arguments[0]); | 14 assertEquals('a', arguments[0]); |
| 15 assertEquals('b', arguments[1]); | 15 assertEquals('b', arguments[1]); |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 var calls = 0; | 149 var calls = 0; |
| 150 function f(arguments) { | 150 function f(arguments) { |
| 151 (() => { | 151 (() => { |
| 152 calls++; | 152 calls++; |
| 153 assertEquals('a', arguments); | 153 assertEquals('a', arguments); |
| 154 })(); | 154 })(); |
| 155 } | 155 } |
| 156 f('a'); | 156 f('a'); |
| 157 assertEquals(1, calls); | 157 assertEquals(1, calls); |
| 158 })(); | 158 })(); |
| OLD | NEW |