OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2014 the V8 project authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 (function f(){ | |
6 assertEquals("function", typeof f); | |
7 })(); | |
8 | |
9 (function f(){ | |
10 var f; | |
11 assertEquals("undefined", typeof f); | |
12 })(); | |
13 | |
14 (function f(){ | |
15 var f; | |
16 assertEquals("undefined", typeof f); | |
17 with ({}); | |
18 })(); | |
19 | |
20 assertEquals("undefined", typeof f); | |
21 | |
22 (function() { | |
23 with ( {} ) const a = 3; | |
rossberg
2014/02/14 11:56:21
How exactly is this test related?
Can we either r
| |
24 assertEquals(3, a); | |
25 })(); | |
OLD | NEW |