fix(firefox): enable a bunch of evaluation tests (#4006)

This commit is contained in:
Andrey Lushnikov
2019-02-13 23:41:53 -08:00
committed by GitHub
parent 6350cf0892
commit e8f044c3be
4 changed files with 33 additions and 6 deletions

View File

@@ -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 {