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

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: 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..508e23949a4f1121e0df2f1b9f7cd146e6027b86
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/workers/resources/error-script.js
@@ -0,0 +1,5 @@
+addEventListener("error", function(e) {
+ postMessage({ source: "event listener", value: e.error });
nhiroki 2017/04/05 07:38:38 I'm not sure what we want to check by "source". Is
yiyix 2017/04/05 09:02:55 I thought it is like a bonus to test the event sou
+});
+
+throw "testError";

Powered by Google App Engine
This is Rietveld 408576698