We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Like these codes:
// lib.js export let c = { name: 'Hello' }; export function ins() { return c.name }; export function reset() { c = { name: 'Hello' }; };
import { c, ins, reset } from './lib'; c.name = '222'; console.log(c); console.log(ins()); reset(); console.log(ins()); console.log(c);
When execute index.js that use babel or TypeScript compiled will print
index.js
{ name: '222' } 222 Hello { name: 'Hello' }
But use traceur, that will print
{ name: '222' } 222 Hello { name: '222' }
Would you tell us, which compiler is compile right?
The text was updated successfully, but these errors were encountered:
The expected output is what Babel outputs. Traceur should output the same thing. We have tests for that. What options are you compiling with?
Sorry, something went wrong.
Use the defaults compiling options.
No branches or pull requests
Like these codes:
When execute
index.js
that use babel or TypeScript compiled will printBut use traceur, that will print
Would you tell us, which compiler is compile right?
The text was updated successfully, but these errors were encountered: