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

Using 'function' as shorthand structure key causes a parsing error #249

Closed
mpaluchowski opened this issue Mar 7, 2017 · 1 comment
Closed

Comments

@mpaluchowski
Copy link
Contributor

The following code:

component {
  function foo() {
    var bar = {
      function = ''
    };
  }
}

causes a parsing error, where the log output only shows null and the resulting cflint-result.xml is empty. This is because of function used as a structure key in this shorthand notation.

The same code, formed as below, doesn't cause any issues:

component {
  function foo() {
    var bar.function = '';
  }
}
ryaneberly added a commit to cfparser/cfparser that referenced this issue Mar 11, 2017
@ryaneberly
Copy link
Contributor

fixed in cfparser 2.4.3

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