diff --git a/packages/ckeditor5-dev-web-crawler/lib/runcrawler.js b/packages/ckeditor5-dev-web-crawler/lib/runcrawler.js index bb293c9a1..ea27f4f13 100644 --- a/packages/ckeditor5-dev-web-crawler/lib/runcrawler.js +++ b/packages/ckeditor5-dev-web-crawler/lib/runcrawler.js @@ -577,9 +577,9 @@ function registerErrorHandlers( page, { link, onError } ) { return argument; }; - const serializeArguments = argument => argument - .executionContext() - .evaluate( serializeArgumentInPageContext, argument ); + const serializeArguments = argument => { + return argument.evaluate( serializeArgumentInPageContext, argument ); + }; const serializedArguments = await Promise.all( message.args().map( serializeArguments ) );