Skip to content
New issue

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

Fail parsing template literals #644

Closed
remss opened this issue Mar 29, 2016 · 1 comment
Closed

Fail parsing template literals #644

remss opened this issue Mar 29, 2016 · 1 comment

Comments

@remss
Copy link

remss commented Mar 29, 2016

Using template literals make the parser fail.

Ext.define('MyPanel' ,{
    extend: 'Ext.panel.Panel',
    myTpl: `
<div class="test">
    <h1>Hello World!</h1>
    <p>Lorem ipsum...</p>
</div>`,
    //... other props/methods
});

Error while parsing myPanel.js: Invalid JavaScript syntax: Unexpected '`' on line 3

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals

@nene
Copy link
Member

nene commented Mar 30, 2016

That's the general issue of JSDuck not supporting ES6 syntax: #630

@nene nene closed this as completed Mar 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants