Skip to content
This repository has been archived by the owner on Mar 4, 2022. It is now read-only.

ECMAScript 6 #1

Open
urswi opened this issue Feb 16, 2016 · 1 comment
Open

ECMAScript 6 #1

urswi opened this issue Feb 16, 2016 · 1 comment

Comments

@urswi
Copy link

urswi commented Feb 16, 2016

Hi

when using ECMAScript 6 Compilation Mode in Visual Studio ngXrmServiceToolkit is not working anymore.

Error:
JavaScript critical error at line 13, column 13 in http://localhost:63176/Scripts/ngXrmServiceToolkit.js\n\nSCRIPT1002: Syntaxfehler

When going back to ECMAScript 5 everything is working fine.
But I'm wondering how you where able to integrate "const" and "let" into ngXrmServiceToolkit.ts that it also runs under ECMAScript 5. My usage of "const" and "let" always needs ECMAScript 5 to compile.

Do you know about this issue, or is it just me?

Best Regards
urswi

@DeBiese
Copy link
Owner

DeBiese commented Mar 8, 2016

I haven't actually tried compiling this to ECMAScript 6 yet.

TypeScript allows you to use const and let before compiling to ECMAScript 6, it just translates that back to var in the javascript file.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants