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

Use of const keyword #78

Closed
gjcampbell opened this issue Jul 19, 2012 · 9 comments
Closed

Use of const keyword #78

gjcampbell opened this issue Jul 19, 2012 · 9 comments

Comments

@gjcampbell
Copy link

Use of the const keyword as in the following does not work in IE. The demo page does not work in IE because of this. Couldn't the browser version of this have use of const replaced with var?

const _lexer_actions = [ ...

@jbpros
Copy link
Member

jbpros commented Jul 24, 2012

Thank you @Sledgebox. It's a Gherkin issue. It's been reported.

@jbpros
Copy link
Member

jbpros commented Sep 8, 2012

Fixed on Gherkin. We need a Gherkin release now :)

@jbpros
Copy link
Member

jbpros commented Oct 8, 2012

Gherkin 2.11.3 breaks cucumber.js. Investigating.

@aslakhellesoy
Copy link
Contributor

That's not good. node_modules/.bin/jasmine-node spec works with both 2.11.1 and 2.11.3 for me. How does it break?

@aslakhellesoy
Copy link
Contributor

Ok, ./bin/cucumber.js breaks...

@aslakhellesoy
Copy link
Contributor

To reproduce in gherkin proper: node js/example/print.js

@jbpros
Copy link
Member

jbpros commented Oct 8, 2012

@aslakhellesoy Looks like https://github.com/cucumber/gherkin/blob/master/js/lib/gherkin.js#L5 is not correct anymore. Lexer modules do not export any Lexer property anymore (which is better IMO). This is quite an old change already.

Another problem is that the listener object passed to gherkin is explicitely checked for the presence of all event handlers, including scenario_outline and example. Cucumber.js is currently not exposing those two.

I'm fixing the latter and I worked around the former by directly requiring gherkin/lib/gherkin/lexer/en but a fix in Gherkin is needed. Do you want me to make an issue for it? Pull request sent.

@jbpros
Copy link
Member

jbpros commented Oct 8, 2012

@aslakhellesoy BTW, when you want to run cucumber.js's tests, please invoke $ rake to run the feature suite (through cucumber-ruby and cucumber-js) in addition to the specs. The specs were not supposed to fail here as Gherkin's API is mocked, but the feature suite was expected to go red and it did.

@lock
Copy link

lock bot commented Oct 25, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 25, 2018
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

3 participants