2014-11-11 23:10:37 +01:00
|
|
|
=== tests/cases/compiler/escapedReservedCompilerNamedIdentifier.ts ===
|
|
|
|
// double underscores
|
|
|
|
var __proto__ = 10;
|
2015-04-13 23:01:57 +02:00
|
|
|
>__proto__ : number, Symbol(__proto__, Decl(escapedReservedCompilerNamedIdentifier.ts, 1, 3))
|
2015-04-13 21:36:11 +02:00
|
|
|
>10 : number
|
2014-11-11 23:10:37 +01:00
|
|
|
|
|
|
|
var o = {
|
2015-04-13 23:01:57 +02:00
|
|
|
>o : { "__proto__": number; }, Symbol(o, Decl(escapedReservedCompilerNamedIdentifier.ts, 2, 3))
|
2014-11-11 23:10:37 +01:00
|
|
|
>{ "__proto__": 0} : { "__proto__": number; }
|
|
|
|
|
|
|
|
"__proto__": 0
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
|
|
|
|
2014-11-11 23:10:37 +01:00
|
|
|
};
|
|
|
|
var b = o["__proto__"];
|
2015-04-13 23:01:57 +02:00
|
|
|
>b : number, Symbol(b, Decl(escapedReservedCompilerNamedIdentifier.ts, 5, 3))
|
2014-11-11 23:10:37 +01:00
|
|
|
>o["__proto__"] : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>o : { "__proto__": number; }, Symbol(o, Decl(escapedReservedCompilerNamedIdentifier.ts, 2, 3))
|
|
|
|
>"__proto__" : string, Symbol("__proto__", Decl(escapedReservedCompilerNamedIdentifier.ts, 2, 9))
|
2014-11-11 23:10:37 +01:00
|
|
|
|
|
|
|
var o1 = {
|
2015-04-13 23:01:57 +02:00
|
|
|
>o1 : { __proto__: number; }, Symbol(o1, Decl(escapedReservedCompilerNamedIdentifier.ts, 6, 3))
|
2014-11-11 23:10:37 +01:00
|
|
|
>{ __proto__: 0} : { __proto__: number; }
|
|
|
|
|
|
|
|
__proto__: 0
|
2015-04-13 23:01:57 +02:00
|
|
|
>__proto__ : number, Symbol(__proto__, Decl(escapedReservedCompilerNamedIdentifier.ts, 6, 10))
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
2014-11-11 23:10:37 +01:00
|
|
|
|
|
|
|
};
|
|
|
|
var b1 = o1["__proto__"];
|
2015-04-13 23:01:57 +02:00
|
|
|
>b1 : number, Symbol(b1, Decl(escapedReservedCompilerNamedIdentifier.ts, 9, 3))
|
2014-11-11 23:10:37 +01:00
|
|
|
>o1["__proto__"] : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>o1 : { __proto__: number; }, Symbol(o1, Decl(escapedReservedCompilerNamedIdentifier.ts, 6, 3))
|
|
|
|
>"__proto__" : string, Symbol(__proto__, Decl(escapedReservedCompilerNamedIdentifier.ts, 6, 10))
|
2014-11-11 23:10:37 +01:00
|
|
|
|
|
|
|
// Triple underscores
|
|
|
|
var ___proto__ = 10;
|
2015-04-13 23:01:57 +02:00
|
|
|
>___proto__ : number, Symbol(___proto__, Decl(escapedReservedCompilerNamedIdentifier.ts, 11, 3))
|
2015-04-13 21:36:11 +02:00
|
|
|
>10 : number
|
2014-11-11 23:10:37 +01:00
|
|
|
|
|
|
|
var o2 = {
|
2015-04-13 23:01:57 +02:00
|
|
|
>o2 : { "___proto__": number; }, Symbol(o2, Decl(escapedReservedCompilerNamedIdentifier.ts, 12, 3))
|
2014-11-11 23:10:37 +01:00
|
|
|
>{ "___proto__": 0} : { "___proto__": number; }
|
|
|
|
|
|
|
|
"___proto__": 0
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
|
|
|
|
2014-11-11 23:10:37 +01:00
|
|
|
};
|
|
|
|
var b2 = o2["___proto__"];
|
2015-04-13 23:01:57 +02:00
|
|
|
>b2 : number, Symbol(b2, Decl(escapedReservedCompilerNamedIdentifier.ts, 15, 3))
|
2014-11-11 23:10:37 +01:00
|
|
|
>o2["___proto__"] : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>o2 : { "___proto__": number; }, Symbol(o2, Decl(escapedReservedCompilerNamedIdentifier.ts, 12, 3))
|
|
|
|
>"___proto__" : string, Symbol("___proto__", Decl(escapedReservedCompilerNamedIdentifier.ts, 12, 10))
|
2014-11-11 23:10:37 +01:00
|
|
|
|
|
|
|
var o3 = {
|
2015-04-13 23:01:57 +02:00
|
|
|
>o3 : { ___proto__: number; }, Symbol(o3, Decl(escapedReservedCompilerNamedIdentifier.ts, 16, 3))
|
2014-11-11 23:10:37 +01:00
|
|
|
>{ ___proto__: 0} : { ___proto__: number; }
|
|
|
|
|
|
|
|
___proto__: 0
|
2015-04-13 23:01:57 +02:00
|
|
|
>___proto__ : number, Symbol(___proto__, Decl(escapedReservedCompilerNamedIdentifier.ts, 16, 10))
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
2014-11-11 23:10:37 +01:00
|
|
|
|
|
|
|
};
|
|
|
|
var b3 = o3["___proto__"];
|
2015-04-13 23:01:57 +02:00
|
|
|
>b3 : number, Symbol(b3, Decl(escapedReservedCompilerNamedIdentifier.ts, 19, 3))
|
2014-11-11 23:10:37 +01:00
|
|
|
>o3["___proto__"] : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>o3 : { ___proto__: number; }, Symbol(o3, Decl(escapedReservedCompilerNamedIdentifier.ts, 16, 3))
|
|
|
|
>"___proto__" : string, Symbol(___proto__, Decl(escapedReservedCompilerNamedIdentifier.ts, 16, 10))
|
2014-11-11 23:10:37 +01:00
|
|
|
|
|
|
|
// One underscore
|
|
|
|
var _proto__ = 10;
|
2015-04-13 23:01:57 +02:00
|
|
|
>_proto__ : number, Symbol(_proto__, Decl(escapedReservedCompilerNamedIdentifier.ts, 21, 3))
|
2015-04-13 21:36:11 +02:00
|
|
|
>10 : number
|
2014-11-11 23:10:37 +01:00
|
|
|
|
|
|
|
var o4 = {
|
2015-04-13 23:01:57 +02:00
|
|
|
>o4 : { "_proto__": number; }, Symbol(o4, Decl(escapedReservedCompilerNamedIdentifier.ts, 22, 3))
|
2014-11-11 23:10:37 +01:00
|
|
|
>{ "_proto__": 0} : { "_proto__": number; }
|
|
|
|
|
|
|
|
"_proto__": 0
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
|
|
|
|
2014-11-11 23:10:37 +01:00
|
|
|
};
|
|
|
|
var b4 = o4["_proto__"];
|
2015-04-13 23:01:57 +02:00
|
|
|
>b4 : number, Symbol(b4, Decl(escapedReservedCompilerNamedIdentifier.ts, 25, 3))
|
2014-11-11 23:10:37 +01:00
|
|
|
>o4["_proto__"] : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>o4 : { "_proto__": number; }, Symbol(o4, Decl(escapedReservedCompilerNamedIdentifier.ts, 22, 3))
|
|
|
|
>"_proto__" : string, Symbol("_proto__", Decl(escapedReservedCompilerNamedIdentifier.ts, 22, 10))
|
2014-11-11 23:10:37 +01:00
|
|
|
|
|
|
|
var o5 = {
|
2015-04-13 23:01:57 +02:00
|
|
|
>o5 : { _proto__: number; }, Symbol(o5, Decl(escapedReservedCompilerNamedIdentifier.ts, 26, 3))
|
2014-11-11 23:10:37 +01:00
|
|
|
>{ _proto__: 0} : { _proto__: number; }
|
|
|
|
|
|
|
|
_proto__: 0
|
2015-04-13 23:01:57 +02:00
|
|
|
>_proto__ : number, Symbol(_proto__, Decl(escapedReservedCompilerNamedIdentifier.ts, 26, 10))
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
2014-11-11 23:10:37 +01:00
|
|
|
|
|
|
|
};
|
|
|
|
var b5 = o5["_proto__"];
|
2015-04-13 23:01:57 +02:00
|
|
|
>b5 : number, Symbol(b5, Decl(escapedReservedCompilerNamedIdentifier.ts, 29, 3))
|
2014-11-11 23:10:37 +01:00
|
|
|
>o5["_proto__"] : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>o5 : { _proto__: number; }, Symbol(o5, Decl(escapedReservedCompilerNamedIdentifier.ts, 26, 3))
|
|
|
|
>"_proto__" : string, Symbol(_proto__, Decl(escapedReservedCompilerNamedIdentifier.ts, 26, 10))
|
2014-11-11 23:10:37 +01:00
|
|
|
|