Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Unified Diff: third_party/WebKit/LayoutTests/fast/workers/resources/error-script.js

Issue 2804533002: Update Error Event inside a worker to provide the exact exception value (Closed)
Patch Set: nits Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/fast/workers/resources/error-script.js
diff --git a/third_party/WebKit/LayoutTests/fast/workers/resources/error-script.js b/third_party/WebKit/LayoutTests/fast/workers/resources/error-script.js
new file mode 100644
index 0000000000000000000000000000000000000000..47d46dcf7f4f6b0bdb457af65ae6ee6c65786e9f
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/workers/resources/error-script.js
@@ -0,0 +1,5 @@
+addEventListener("error", function(e) {
+ postMessage({ value: e.error });
+});
+
+throw "testError";

Powered by Google App Engine
This is Rietveld 408576698