Not every global object is a window.
Created attachment 159220 [details] proposed fix
Comment on attachment 159220 [details] proposed fix View in context: https://bugs.webkit.org/attachment.cgi?id=159220&action=review > Source/WebCore/bindings/js/JSDOMBinding.cpp:167 > + ScriptExecutionContext* scriptExecutionContext = globalObject->scriptExecutionContext(); > + scriptExecutionContext->reportException(ustringToString(errorMessage), lineNumber, ustringToString(exceptionSourceURL), 0); I think this can go on one line.
Committed <http://trac.webkit.org/changeset/125946>.