Index: third_party/WebKit/LayoutTests/security/immutable-prototype.html |
diff --git a/third_party/WebKit/LayoutTests/security/immutable-prototype.html b/third_party/WebKit/LayoutTests/security/immutable-prototype.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..6d4ebfd442d725267683c3adf18262674ff820f9 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/security/immutable-prototype.html |
@@ -0,0 +1,26 @@ |
+<!DOCTYPE html> |
+<html> |
+<script> |
+'use strict'; |
+ |
+var global = window; |
+ |
+while (global !== null) { |
+ let thrown = false; |
+ let next = global.__proto__; |
+ try { |
+ global.__proto__ = {}; |
+ } catch (e) { |
+ console.log(e.message); |
+ thrown = true; |
+ } |
+ if (!thrown) console.log("Got through--FIXME"); |
+ global = next; |
+} |
+if (window.testRunner) { |
+ testRunner.dumpAsText(); |
+ testRunner.notifyDone(); |
+} |
+</script> |
+</html> |
+ |