mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
fix(firefox): enable a bunch of evaluation tests (#4006)
This commit is contained in:
@@ -82,7 +82,7 @@ class ExecutionContext {
|
||||
}
|
||||
|
||||
if (typeof pageFunction !== 'function')
|
||||
throw new Error('The following is not a function: ' + pageFunction);
|
||||
throw new Error(`Expected to get |string| or |function| as the first argument, but got "${pageFunction}" instead.`);
|
||||
|
||||
let functionText = pageFunction.toString();
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user