Index: LayoutTests/fast/dom/custom/exception-from-constructor.html |
diff --git a/LayoutTests/fast/dom/custom/exception-from-constructor.html b/LayoutTests/fast/dom/custom/exception-from-constructor.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..decefa717bb8d310750d723f8893741daa80637f |
--- /dev/null |
+++ b/LayoutTests/fast/dom/custom/exception-from-constructor.html |
@@ -0,0 +1,18 @@ |
+<!DOCTYPE html> |
+<script src="../../../resources/js-test.js"></script> |
+<body> |
+<script> |
+description('Tests throwing an exception during registration of constructor'); |
+ |
+if (window.testRunner) |
+ testRunner.dumpAsText(); |
+ |
+var proto = Object.create(HTMLElement.prototype, { |
+ constructor: { |
+ configurable: true, |
+ get: function () { throw "Exception thrown from getter"; } |
+ } |
+ }); |
+ |
+shouldThrow('document.registerElement("x-a", {prototype: proto})', '"Exception thrown from getter"'); |
+</script> |