summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/statements/function/line-terminator.js
blob: f841d2e85eafd4122821929471790bf69c71462d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// Copyright 2009 the Sputnik authors.  All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
info: Any separators are admitted between declaration chunks
es5id: 13_A16
description: Inserting separators between declaration chunks
---*/

function
x
(
)
{
}
;

x();

function                                                    y                                   (                                          )                                              {};

y();

function

z

(

)

{
    
}

;

z();

// The following function expression is expressed with literal unicode
// characters so that parsers may benefit from this test. The included code
// points are as follows:
//
// "function\u0009\u2029w(\u000C)\u00A0{\u000D}"

functionw() {
}

w();

reportCompare(0, 0);