| Index: third_party/WebKit/LayoutTests/fast/workers/resources/worker-xhr-onerror.js
|
| diff --git a/third_party/WebKit/LayoutTests/fast/workers/resources/worker-xhr-onerror.js b/third_party/WebKit/LayoutTests/fast/workers/resources/worker-xhr-onerror.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..ba43eea1e6db43ab0dcc69f213679827b4e47e4c
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/fast/workers/resources/worker-xhr-onerror.js
|
| @@ -0,0 +1,10 @@
|
| +(function () {
|
| + var xhr = new XMLHttpRequest();
|
| + xhr.open('GET', 'does-not-exist.js');
|
| + xhr.onerror = () => { postMessage('done'); };
|
| + xhr.send();
|
| +})();
|
| +// |xhr| isn't in scope, but it will signal pending activity
|
| +// when the GC runs, hence will be kept alive and allowed to
|
| +// run to completion.
|
| +self.gc();
|
|
|