Skip to content
This repository has been archived by the owner on Feb 22, 2018. It is now read-only.

Support console.log #352

Open
tbosch opened this issue Mar 2, 2016 · 1 comment
Open

Support console.log #352

tbosch opened this issue Mar 2, 2016 · 1 comment

Comments

@tbosch
Copy link

tbosch commented Mar 2, 2016

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
Copy link
Contributor

jacob314 commented Mar 2, 2016

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)

ochafik added a commit to ochafik/ts2dart that referenced this issue Apr 22, 2016
Note: as suggested in the issue, we could transpile to
window.console.log if it had a varargs signature. However, that would
introduce a dependency to dart:html, which seems overkill.
ochafik added a commit to ochafik/ts2dart that referenced this issue Apr 22, 2016
Note: as suggested in the issue, we could transpile to
window.console.log if it had a varargs signature. However, that would
introduce a dependency to dart:html, which seems overkill.
ochafik added a commit to ochafik/ts2dart that referenced this issue Apr 23, 2016
Note: as suggested in the issue, we could transpile to
window.console.log if it had a varargs signature. However, that would
introduce a dependency to dart:html, which seems overkill.
mprobst pushed a commit that referenced this issue Apr 23, 2016
Note: as suggested in the issue, we could transpile to
window.console.log if it had a varargs signature. However, that would
introduce a dependency to dart:html, which seems overkill.
mprobst pushed a commit that referenced this issue Apr 23, 2016
Note: as suggested in the issue, we could transpile to
window.console.log if it had a varargs signature. However, that would
introduce a dependency to dart:html, which seems overkill.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants