Index: third_party/WebKit/LayoutTests/webaudio/resources/audit.js |
diff --git a/third_party/WebKit/LayoutTests/webaudio/resources/audit.js b/third_party/WebKit/LayoutTests/webaudio/resources/audit.js |
index 80fe9cdbea422a7fb76eb56d2c15c0beac811a46..d2946161efbb1f2cd2f707a8d6487db5145ddee8 100644 |
--- a/third_party/WebKit/LayoutTests/webaudio/resources/audit.js |
+++ b/third_party/WebKit/LayoutTests/webaudio/resources/audit.js |
@@ -287,7 +287,7 @@ window.Audit = (function () { |
// Catch did not happen, so the test is failed. |
failDetail = '${actual} did not throw an exception.'; |
} catch (error) { |
- if (this._expected === null) { |
+ if (this._expected === null || this._expected === undefined) { |
// The expected error type was not given. |
didThrowCorrectly = true; |
passDetail = '${actual} threw ' + error.name + ': "' |