diff --git a/webaudio/resources/audit.js b/webaudio/resources/audit.js index 7ffa4392b05a15d..5d21bd3d4d34462 100644 --- a/webaudio/resources/audit.js +++ b/webaudio/resources/audit.js @@ -314,7 +314,7 @@ window.Audit = (function() { didThrowCorrectly = true; passDetail = '${actual} threw ' + error.name + errorMessage + '.'; } else if (typeof(this._expected) == "string" && - error instanceof DOMException && + error instanceof Error && error.name === this._expected) { // A DOMException was thrown and expected, and the names match didThrowCorrectly = true;