Skip to content

Commit

Permalink
fixup! reviewer suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
erights committed Jan 15, 2025
1 parent 85f4523 commit 14a3e2b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/pass-style/src/passStyleOf.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion packages/pass-style/test/passStyleOf.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down

0 comments on commit 14a3e2b

Please sign in to comment.