From 71a0bb9e7f15f6151dc6ae2cbe4649ac76a6d15f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20=C5=A0tola?= Date: Thu, 9 Sep 2021 14:41:22 +0200 Subject: [PATCH] RegExp.prototype.compile from other realm should throw TypeError from other realm. --- .../RegExp/prototype/compile/this-cross-realm-instance.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); },