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

runner.rb:35:in `[]': no implicit conversion of String into Integer (TypeError) #524

Closed
thebravoman opened this issue Jul 20, 2017 · 4 comments
Labels

Comments

@thebravoman
Copy link

Example is just

console.log(1);

in any of the spec and it will throw this error on run without giving any more information.

.rvm/gems/ruby-2.2.2/gems/teaspoon-1.1.5/lib/teaspoon/runner.rb:35:in `[]': no implicit conversion of String into Integer (TypeError)

It was really difficult to track this down, because there was a console.log() in some of the js files and at a certain point there was a call to console.log with an integer and it was breaking without even saying a line or something.

@soccerKevin
Copy link

I have the same problem. it happens with console.log("1") too.
if you change it from an int to a definitive string, like console.log("a1"), then it works

@jejacks0n
Copy link
Owner

interesting, hmm, wow. I think I kinda understand. I'll look into it.

@thbar
Copy link

thbar commented Nov 2, 2017

@thebravoman thanks for the report. Indeed it was complicated to track down and I was starting to wonder if it was an incompatibility with the most recent phantomjs, for instance.

@mathieujobin
Copy link
Collaborator

too old and not enough info. please reopen if you can reproduce or fix.

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

No branches or pull requests

5 participants