1// Copyright JS Foundation and other contributors, http://js.foundation
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//     http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15assert (x === undefined);
16assert (y === undefined);
17assert (z === undefined);
18assert (i === undefined);
19assert (j === undefined);
20assert (k === undefined);
21assert (q === undefined);
22assert (v === undefined);
23
24eval ('var n');
25eval ('var m = 1');
26
27try
28{
29  x = p;
30  assert (false);
31}
32catch (e)
33{
34  assert (e instanceof ReferenceError);
35}
36
37{
38  var y;
39}
40var x = y;
41
42do var z; while (0);
43
44for (var i, j = function () {var p;}; i === undefined; i = null)
45{
46}
47
48for (var q in {})
49{
50}
51
52{ var v = 1 }
53
54try
55{
56  var k
57  l
58  assert (false)
59}
60catch (e)
61{
62  assert (e instanceof ReferenceError);
63}
64