Skip to content

Instantly share code, notes, and snippets.

@mraleph
Created October 2, 2012 16:41
Show Gist options
  • Save mraleph/3820878 to your computer and use it in GitHub Desktop.
Save mraleph/3820878 to your computer and use it in GitHub Desktop.
__proto__ is awesome
whitestar ~/src/temp ∳ cat test.ts
__proto__("I like magical properties!");
whitestar ~/src/temp ∳ tsc test.ts
/Users/mraleph/local/node-v0.8.10/lib/node_modules/typescript/bin/tsc.js:19974
while(tok.tokenId != TypeScript.TokenID.EOF) {
^
TypeError: Cannot read property 'tokenId' of undefined
at Object.preProcessFile (/Users/mraleph/local/node-v0.8.10/lib/node_modules/typescript/bin/tsc.js:19974:18)
at CodeResolver.resolveCode (/Users/mraleph/local/node-v0.8.10/lib/node_modules/typescript/bin/tsc.js:19731:59)
at CommandLineHost.resolveCompilationEnvironment (/Users/mraleph/local/node-v0.8.10/lib/node_modules/typescript/bin/tsc.js:21492:22)
at BatchCompiler.resolve (/Users/mraleph/local/node-v0.8.10/lib/node_modules/typescript/bin/tsc.js:21508:40)
at BatchCompiler.batchCompile (/Users/mraleph/local/node-v0.8.10/lib/node_modules/typescript/bin/tsc.js:21854:76)
at Object.<anonymous> (/Users/mraleph/local/node-v0.8.10/lib/node_modules/typescript/bin/tsc.js:21891:7)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment