| Index: third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/immutable-prototype-serviceworker.js
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/immutable-prototype-serviceworker.js b/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/immutable-prototype-serviceworker.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..346b998ceac004b93a3fc505828a2614fbef1560
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/immutable-prototype-serviceworker.js
|
| @@ -0,0 +1,19 @@
|
| +function prototypeChain(global) {
|
| + let result = [];
|
| + while (global !== null) {
|
| + let thrown = false;
|
| + let next = global.__proto__;
|
| + try {
|
| + global.__proto__ = {};
|
| + result.push('mutable');
|
| + } catch (e) {
|
| + result.push('immutable');
|
| + }
|
| + global = next;
|
| + }
|
| + return result;
|
| +}
|
| +
|
| +self.onmessage = function(e) {
|
| + e.data.postMessage(prototypeChain(self));
|
| +};
|
|
|