Index: third_party/WebKit/LayoutTests/resources/testharness.js |
diff --git a/third_party/WebKit/LayoutTests/resources/testharness.js b/third_party/WebKit/LayoutTests/resources/testharness.js |
index 5b924b10948fd885e6941cb3d76a18b4cc16c1a7..69ffe013ce5b50d1aaab8cb83d6dabadac7e1be6 100644 |
--- a/third_party/WebKit/LayoutTests/resources/testharness.js |
+++ b/third_party/WebKit/LayoutTests/resources/testharness.js |
@@ -1247,6 +1247,7 @@ policies and contribution forms [3]. |
ReadOnlyError: 0, |
VersionError: 0, |
OperationError: 0, |
+ NotAllowedError: 0 |
}; |
if (!(name in name_code_map)) { |
@@ -2463,6 +2464,11 @@ policies and contribution forms [3]. |
} |
} |
+ // 'Error.stack' is not supported in all browsers/versions |
+ if (!stack) { |
+ return "(Stack trace unavailable)"; |
+ } |
+ |
var lines = stack.split("\n"); |
// Create a pattern to match stack frames originating within testharness.js. These include the |