Skip to content

page.waitForFunction fails because of whitespace #3723

Closed
@fringd

Description

Steps to reproduce

await page.waitForFunction(`
  (() => true)()`);

never returns, but

await page.waitForFunction(`(() => true)()`);

does. I expect them both to return immediately.

Tell us about your environment:

  • Puppeteer version: 1.11.0
  • Platform / OS version: MacOS
  • URLs (if applicable):
  • Node.js version: 8.9.1

Metadata

Assignees

No one assigned

    Labels

    bugchromiumIssues with Puppeteer-Chromium

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions