You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'use strict';constpuppeteer=require('puppeteer');(asyncfunctionmain(){try{constbrowser=awaitpuppeteer.launch();const[page]=awaitbrowser.pages();awaitpage.evaluate(()=>Symbol('foo1'));// OKawaitpage.evaluate(()=>({[Symbol('foo2')]: Symbol('foo3')}));// OKawaitpage.evaluate(()=>[Symbol('foo4')]);// throws and hangsawaitbrowser.close();}catch(err){console.error(err);}})();
{ Error: Protocol error (Runtime.callFunctionOn): Object couldn't be returned by value undefined at Promise (puppeteer/lib/Connection.js:198:56) at new Promise (<anonymous>) at CDPSession.send (puppeteer/lib/Connection.js:197:12) at JSHandle.jsonValue (puppeteer/lib/ExecutionContext.js:184:43) at ExecutionContext.evaluate (puppeteer/lib/ExecutionContext.js:47:33) at process._tickCallback (internal/process/next_tick.js:178:7) message: 'Protocol error (Runtime.callFunctionOn): Object couldn\'t be returned by value undefined' }
The text was updated successfully, but these errors were encountered:
vsemozhetbyt
changed the title
page.evaluate() throws if returned value is an array with Symbol
page.evaluate() throws and hangs if returned value is an array with Symbol
Mar 31, 2018
The text was updated successfully, but these errors were encountered: