49 lines
987 B
Text
49 lines
987 B
Text
=== tests/cases/compiler/reservedWords.ts ===
|
|
var obj = {
|
|
>obj : { if: number; debugger: number; break: number; function: number; }
|
|
>{ if: 0, debugger: 2, break: 3, function: 4} : { if: number; debugger: number; break: number; function: number; }
|
|
|
|
if: 0,
|
|
>if : number
|
|
>0 : number
|
|
|
|
debugger: 2,
|
|
>debugger : number
|
|
>2 : number
|
|
|
|
break: 3,
|
|
>break : number
|
|
>3 : number
|
|
|
|
function: 4
|
|
>function : number
|
|
>4 : number
|
|
}
|
|
|
|
//This compiles.
|
|
|
|
var obj2 = {
|
|
>obj2 : { if: number; while: number; debugger: number; break: number; function: number; }
|
|
>{ if: 0, while: 1, debugger: 2, break: 3, function: 4} : { if: number; while: number; debugger: number; break: number; function: number; }
|
|
|
|
if: 0,
|
|
>if : number
|
|
>0 : number
|
|
|
|
while: 1,
|
|
>while : number
|
|
>1 : number
|
|
|
|
debugger: 2,
|
|
>debugger : number
|
|
>2 : number
|
|
|
|
break: 3,
|
|
>break : number
|
|
>3 : number
|
|
|
|
function: 4
|
|
>function : number
|
|
>4 : number
|
|
}
|
|
|