dart-archive / ts2dart

ts2dart TypeScript to Dart transpiler
Apache License 2.0
181 stars 62 forks source link

Support `console.log` #352

Open tbosch opened 8 years ago

tbosch commented 8 years ago

This should result in a print statement in Dart with interpolation. E.g.

console.log('Name:', name)

Should be transpiled into

print(`Name: ${name}`);
jacob314 commented 8 years ago

dart:html could be easily updated to allow logging multiple arguments. then the transformation would just need to be console.log('Name:', name) to window.console.log('Name:', name)