Hi
This works great as-is, but I'd like to use the experimental features e.g.
class Greeter {
constructor(message:string) {
this.message = message;
}
.......
If I try to switch on experimental features as discussed in various postings, I find traceur.options is undefined. I also tried creatiing the options object:
<script>
traceur.options.experimental = true; // Uncaught TypeError: Cannot set property 'experimental' of undefined
traceur.options = { experimental:true }; // has no effect e.g. "constructor(message:string)" is a syntax error
</script>
<script>
traceur.options.experimental = true; // "constructor(message:string)" is now accepted
</script>
I'm serving locally, on win7 w/ chrome 40.0.2214.111 m
I wasn't able to find anything to suggest an alternate syntax etc when doing on-the-fly comilation - What am I doing wrong?
Thanks - Si