From ed0532e231f00f325b8767b12396442582f78e01 Mon Sep 17 00:00:00 2001 From: Phillip Mates Date: Mon, 13 Sep 2021 14:37:19 +0200 Subject: [PATCH] syntax errors for `ShadowRealm.evaluate` should be exposed --- .../errors-from-the-other-realm-is-wrapped-into-a-typeerror.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/built-ins/ShadowRealm/prototype/evaluate/errors-from-the-other-realm-is-wrapped-into-a-typeerror.js b/test/built-ins/ShadowRealm/prototype/evaluate/errors-from-the-other-realm-is-wrapped-into-a-typeerror.js index c3187e71a6..fa5367a4d7 100644 --- a/test/built-ins/ShadowRealm/prototype/evaluate/errors-from-the-other-realm-is-wrapped-into-a-typeerror.js +++ b/test/built-ins/ShadowRealm/prototype/evaluate/errors-from-the-other-realm-is-wrapped-into-a-typeerror.js @@ -15,7 +15,7 @@ assert.sameValue( const r = new ShadowRealm(); -assert.throws(TypeError, () => r.evaluate('...'), 'SyntaxError => TypeError'); +assert.throws(SyntaxError, () => r.evaluate('...'), 'SyntaxError exposed to Parent'); assert.throws(TypeError, () => r.evaluate('throw 42'), 'throw primitive => TypeError'); assert.throws(TypeError, () => r.evaluate('throw new ReferenceError("aaa")'), 'custom ctor => TypeError'); assert.throws(TypeError, () => r.evaluate('throw new TypeError("aaa")'), 'Child TypeError => Parent TypeError');