| Index: third_party/WebKit/LayoutTests/imported/wpt/workers/support/ErrorEvent.js
|
| diff --git a/third_party/WebKit/LayoutTests/imported/wpt/workers/support/ErrorEvent.js b/third_party/WebKit/LayoutTests/imported/wpt/workers/support/ErrorEvent.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..22ea6d4fb51598bea91c798c8c4442f0cc018f96
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/imported/wpt/workers/support/ErrorEvent.js
|
| @@ -0,0 +1,10 @@
|
| +onmessage = function(evt)
|
| +{
|
| + throw(new Error(evt.data));
|
| +}
|
| +
|
| +onerror = function(message, location, line, col)
|
| +{
|
| + postMessage( {"message": message, "filename": location, "lineno": line, "colno": col} );
|
| + return false; // "not handled" so the error propagates up to the Worker object
|
| +}
|
|
|