mirror of
https://github.com/servo/servo
synced 2026-05-09 16:42:16 +02:00
This change merges the WebDriver only `WebDriverJSError` with the API `JavaScriptEvaluationError` and also allows passing `ErrorInfo` information through to the API layer when possible. In addition, the stack is added to `ErrorInfo` (but only in situations when evaluating JavaScript code for WebDriver or via the API for performance reasons). These changes allow much more useful error output when script execution fails via WebDriver. Now the error message and source file line numbers are printed by the test executor. Testing: These changes should be reflected in the testing output. Signed-off-by: Martin Robinson <mrobinson@igalia.com>