|
1 |
| -=== tests/cases/compiler/json.stringify.ts === |
2 |
| -var value = null; |
3 |
| ->value : Symbol(value, Decl(json.stringify.ts, 0, 3)) |
4 |
| - |
5 |
| -JSON.stringify(value, undefined, 2); |
6 |
| ->JSON.stringify : Symbol(JSON.stringify, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) |
7 |
| ->JSON : Symbol(JSON, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) |
8 |
| ->stringify : Symbol(JSON.stringify, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) |
9 |
| ->value : Symbol(value, Decl(json.stringify.ts, 0, 3)) |
10 |
| ->undefined : Symbol(undefined) |
11 |
| - |
12 |
| -JSON.stringify(value, null, 2); |
13 |
| ->JSON.stringify : Symbol(JSON.stringify, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) |
14 |
| ->JSON : Symbol(JSON, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) |
15 |
| ->stringify : Symbol(JSON.stringify, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) |
16 |
| ->value : Symbol(value, Decl(json.stringify.ts, 0, 3)) |
17 |
| - |
18 |
| -JSON.stringify(value, ["a", 1], 2); |
19 |
| ->JSON.stringify : Symbol(JSON.stringify, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) |
20 |
| ->JSON : Symbol(JSON, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) |
21 |
| ->stringify : Symbol(JSON.stringify, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) |
22 |
| ->value : Symbol(value, Decl(json.stringify.ts, 0, 3)) |
23 |
| - |
24 |
| -JSON.stringify(value, (k) => undefined, 2); |
25 |
| ->JSON.stringify : Symbol(JSON.stringify, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) |
26 |
| ->JSON : Symbol(JSON, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) |
27 |
| ->stringify : Symbol(JSON.stringify, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) |
28 |
| ->value : Symbol(value, Decl(json.stringify.ts, 0, 3)) |
29 |
| ->k : Symbol(k, Decl(json.stringify.ts, 4, 23)) |
30 |
| ->undefined : Symbol(undefined) |
31 |
| - |
32 |
| -JSON.stringify(() => {}, undefined, 2); |
33 |
| ->JSON.stringify : Symbol(JSON.stringify, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) |
34 |
| ->JSON : Symbol(JSON, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) |
35 |
| ->stringify : Symbol(JSON.stringify, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) |
36 |
| ->undefined : Symbol(undefined) |
37 |
| - |
38 |
| -JSON.stringify(Symbol('s'), undefined, 2); |
39 |
| ->JSON.stringify : Symbol(JSON.stringify, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) |
40 |
| ->JSON : Symbol(JSON, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) |
41 |
| ->stringify : Symbol(JSON.stringify, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) |
42 |
| ->Symbol : Symbol(Symbol, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) |
43 |
| ->undefined : Symbol(undefined) |
44 |
| - |
45 |
| -JSON.stringify(undefined, undefined, 2); |
46 |
| ->JSON.stringify : Symbol(JSON.stringify, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) |
47 |
| ->JSON : Symbol(JSON, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) |
48 |
| ->stringify : Symbol(JSON.stringify, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) |
49 |
| ->undefined : Symbol(undefined) |
50 |
| ->undefined : Symbol(undefined) |
51 |
| - |
| 1 | +=== tests/cases/compiler/json.stringify.ts === |
| 2 | +var value = null; |
| 3 | +>value : Symbol(value, Decl(json.stringify.ts, 0, 3)) |
| 4 | +
|
| 5 | +JSON.stringify(value, undefined, 2); |
| 6 | +>JSON.stringify : Symbol(JSON.stringify, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) |
| 7 | +>JSON : Symbol(JSON, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) |
| 8 | +>stringify : Symbol(JSON.stringify, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) |
| 9 | +>value : Symbol(value, Decl(json.stringify.ts, 0, 3)) |
| 10 | +>undefined : Symbol(undefined) |
| 11 | +
|
| 12 | +JSON.stringify(value, null, 2); |
| 13 | +>JSON.stringify : Symbol(JSON.stringify, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) |
| 14 | +>JSON : Symbol(JSON, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) |
| 15 | +>stringify : Symbol(JSON.stringify, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) |
| 16 | +>value : Symbol(value, Decl(json.stringify.ts, 0, 3)) |
| 17 | +
|
| 18 | +JSON.stringify(value, ["a", 1], 2); |
| 19 | +>JSON.stringify : Symbol(JSON.stringify, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) |
| 20 | +>JSON : Symbol(JSON, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) |
| 21 | +>stringify : Symbol(JSON.stringify, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) |
| 22 | +>value : Symbol(value, Decl(json.stringify.ts, 0, 3)) |
| 23 | +
|
| 24 | +JSON.stringify(value, (k) => undefined, 2); |
| 25 | +>JSON.stringify : Symbol(JSON.stringify, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) |
| 26 | +>JSON : Symbol(JSON, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) |
| 27 | +>stringify : Symbol(JSON.stringify, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) |
| 28 | +>value : Symbol(value, Decl(json.stringify.ts, 0, 3)) |
| 29 | +>k : Symbol(k, Decl(json.stringify.ts, 4, 23)) |
| 30 | +>undefined : Symbol(undefined) |
| 31 | +
|
| 32 | +JSON.stringify(() => {}, undefined, 2); |
| 33 | +>JSON.stringify : Symbol(JSON.stringify, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) |
| 34 | +>JSON : Symbol(JSON, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) |
| 35 | +>stringify : Symbol(JSON.stringify, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) |
| 36 | +>undefined : Symbol(undefined) |
| 37 | +
|
| 38 | +JSON.stringify(Symbol('s'), undefined, 2); |
| 39 | +>JSON.stringify : Symbol(JSON.stringify, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) |
| 40 | +>JSON : Symbol(JSON, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) |
| 41 | +>stringify : Symbol(JSON.stringify, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) |
| 42 | +>Symbol : Symbol(Symbol, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) |
| 43 | +>undefined : Symbol(undefined) |
| 44 | +
|
| 45 | +JSON.stringify(undefined, undefined, 2); |
| 46 | +>JSON.stringify : Symbol(JSON.stringify, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) |
| 47 | +>JSON : Symbol(JSON, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) |
| 48 | +>stringify : Symbol(JSON.stringify, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) |
| 49 | +>undefined : Symbol(undefined) |
| 50 | +>undefined : Symbol(undefined) |
| 51 | +
|
0 commit comments