Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

passStyleOf checks ignore some properties when non-enumerable #1316

Closed
gibson042 opened this issue Oct 12, 2022 · 0 comments · Fixed by #1317
Closed

passStyleOf checks ignore some properties when non-enumerable #1316

gibson042 opened this issue Oct 12, 2022 · 0 comments · Fixed by #1317
Assignees

Comments

@gibson042
Copy link
Contributor

Examples:

tagged record

harden(Object.defineProperties({}, {
  [PASS_STYLE]: { value: 'tagged' },
  [Symbol.toStringTag]: { value: 'tagged' },
  payload: { enumerable: true },
  extra: { value: 'unexpected own property' },
}))

remotable

harden({
  __proto__: Object.defineProperties({}, {
    [PASS_STYLE]: { value: 'remotable' },
    [Symbol.toStringTag]: { value: 'Remotable' },
    extra: { value: () => 'unexpected prototype method' },
  })
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant