| Index: third_party/WebKit/LayoutTests/imported/wpt/resources/testharness.js
|
| diff --git a/third_party/WebKit/LayoutTests/imported/wpt/resources/testharness.js b/third_party/WebKit/LayoutTests/imported/wpt/resources/testharness.js
|
| index a13cacc8e2c3d20954aa4cadb9e1dab102d820e6..ceb3a4b462e4c664ade77b8a8916197dca5f6ac8 100644
|
| --- a/third_party/WebKit/LayoutTests/imported/wpt/resources/testharness.js
|
| +++ b/third_party/WebKit/LayoutTests/imported/wpt/resources/testharness.js
|
| @@ -2466,7 +2466,9 @@ policies and contribution forms [3].
|
| // script URL, followed by the line/col (e.g., '/resources/testharness.js:120:21').
|
| // Escape the URL per http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript
|
| // in case it contains RegExp characters.
|
| - var re = new RegExp((get_script_url().replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&') || "\\btestharness.js") + ":\\d+:\\d+");
|
| + var script_url = get_script_url();
|
| + var re_text = script_url ? script_url.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&') : "\\btestharness.js";
|
| + var re = new RegExp(re_text + ":\\d+:\\d+");
|
|
|
| // Some browsers include a preamble that specifies the type of the error object. Skip this by
|
| // advancing until we find the first stack frame originating from testharness.js.
|
|
|