question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Proposal: rename `page.evaluate` into `page.eval`

See original GitHub issue

Justification:

  • page.evaluate is actually doing eval in a page
  • page.evaluate is probably the most used method, it’s tiring to type the whole word every time

@paulirish @ebidel wdyt?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
aslushnikovcommented, Aug 7, 2017

On the ‘cons’ side:

let page = await browser.newPage();
page.eval = page.evaluate;

I’m not convinced we need it, I’d rather not make it to minimize entropy.

1reaction
Garbeecommented, Aug 4, 2017

I’m disappointed in you @ebidel. :shipit: exists.

Read more comments on GitHub >

github_iconTop Results From Across the Web

allow to pass a parameterized funciton as a string to page ...
I have tried await page.evaluate( (a) => { console.log('a', ... I have also attempted to eval the code as a string, but because...
Read more >
How to use url module in puppeteer page.evaluate
Expose all the functions from the url package using page. ... Every function of the url package will be renamed. url.parse is accessible ......
Read more >
Page.evaluate() method - Puppeteer
Evaluates a function in the page's context and returns the result.
Read more >
Delivering Government Solutions in the 21st Century
performance management, and evaluation in order to study how education and ... The proposal renames HHS the Department of Health and Public Welfare...
Read more >
Evaluation Reports
Evaluation Reports. Tagline. Page Content. Current Reports. Panel Evaluations. Analyses with an external review panel.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found