Skip to content

Conversation

@aslushnikov
Copy link
Contributor

@aslushnikov aslushnikov commented Sep 9, 2017

It turns out that [undefined, 1].join(',') results in ",1" instead
of "undefined,1". This causes a syntax error when trying to pass undefined
as a first argument to page.evaluate method.

Fixes #572.

It turns out that [undefined, 1].join(',') results in ",1" instead
of "undefined,1". This causes a syntax error when trying to pass undefined
as a first argument to `page.evaluate` method.

Fixes puppeteer#572.
@aslushnikov aslushnikov merged commit a71f287 into puppeteer:master Sep 11, 2017
@aslushnikov aslushnikov deleted the fix-bad-evaluate branch September 11, 2017 23:59
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

Successfully merging this pull request may close these issues.

2 participants