Skip to content

Commit 103c1bb

Browse files
committed
fixup! reviewer suggestion
1 parent e61e950 commit 103c1bb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/pass-style/src/passStyleOf.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ const makePassStyleOf = passStyleHelpers => {
159159
: X`Cannot pass non-frozen objects like ${inner}. Use harden()`,
160160
);
161161
}
162-
throw Fail`Cannot pass non-trapping objects like ${inner}`;
162+
throw Fail`Cannot pass trapping objects like ${inner}`;
163163
}
164164
if (isPromise(inner)) {
165165
assertSafePromise(inner);

packages/pass-style/test/passStyleOf.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const harden = /** @type {import('ses').Harden & { isFake?: boolean }} */ (
1313
global.harden
1414
);
1515

16-
const { getPrototypeOf, defineProperty, freeze, suppressTrapping } = Object;
16+
const { getPrototypeOf, defineProperty, suppressTrapping } = Object;
1717
const { ownKeys } = Reflect;
1818

1919
test('passStyleOf basic success cases', t => {

0 commit comments

Comments
 (0)