diff --git a/test/annexB/built-ins/RegExp/prototype/compile/this-cross-realm-instance.js b/test/annexB/built-ins/RegExp/prototype/compile/this-cross-realm-instance.js index cab609967f..c8a1f789ed 100644 --- a/test/annexB/built-ins/RegExp/prototype/compile/this-cross-realm-instance.js +++ b/test/annexB/built-ins/RegExp/prototype/compile/this-cross-realm-instance.js @@ -20,7 +20,7 @@ assert.throws( ); assert.throws( - TypeError, + other.TypeError, function () { other.RegExp.prototype.compile.call(regexp); },