Index: third_party/WebKit/LayoutTests/http/tests/worklet/immutable-prototype-paint-worklet.js |
diff --git a/third_party/WebKit/LayoutTests/http/tests/worklet/immutable-prototype-paint-worklet.js b/third_party/WebKit/LayoutTests/http/tests/worklet/immutable-prototype-paint-worklet.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f5c19657169743173672d954cb5f3322d7fc2011 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/http/tests/worklet/immutable-prototype-paint-worklet.js |
@@ -0,0 +1,17 @@ |
+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; |
+} |
+ |
+prototypeChain(this).forEach(console.log.bind(console)); |