From bb949c128809290e6f75d11cf8660f9bc5b04e73 Mon Sep 17 00:00:00 2001 From: "Mark S. Miller" Date: Wed, 15 Jan 2025 12:11:52 -0800 Subject: [PATCH] fixup! reviewer suggestion --- packages/pass-style/src/passStyleOf.js | 2 +- packages/pass-style/test/passStyleOf.test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/pass-style/src/passStyleOf.js b/packages/pass-style/src/passStyleOf.js index 2c7cdeb820..e801828122 100644 --- a/packages/pass-style/src/passStyleOf.js +++ b/packages/pass-style/src/passStyleOf.js @@ -159,7 +159,7 @@ const makePassStyleOf = passStyleHelpers => { : X`Cannot pass non-frozen objects like ${inner}. Use harden()`, ); } - throw Fail`Cannot pass non-trapping objects like ${inner}`; + throw Fail`Cannot pass trapping objects like ${inner}`; } if (isPromise(inner)) { assertSafePromise(inner); diff --git a/packages/pass-style/test/passStyleOf.test.js b/packages/pass-style/test/passStyleOf.test.js index 54c4a80b55..1cee420492 100644 --- a/packages/pass-style/test/passStyleOf.test.js +++ b/packages/pass-style/test/passStyleOf.test.js @@ -13,7 +13,7 @@ const harden = /** @type {import('ses').Harden & { isFake?: boolean }} */ ( global.harden ); -const { getPrototypeOf, defineProperty, freeze, suppressTrapping } = Object; +const { getPrototypeOf, defineProperty, suppressTrapping } = Object; const { ownKeys } = Reflect; test('passStyleOf basic success cases', t => {