Skip to content

fix(runtime): define deferred state as own properties#223

Open
Brooooooklyn wants to merge 1 commit into
toyobayashi:v1.xfrom
Brooooooklyn:fix/v1-deferred-own-properties
Open

fix(runtime): define deferred state as own properties#223
Brooooooklyn wants to merge 1 commit into
toyobayashi:v1.xfrom
Brooooooklyn:fix/v1-deferred-own-properties

Conversation

@Brooooooklyn

Copy link
Copy Markdown
Contributor

Summary

Define the v1 runtime Deferred storage with own data properties before any constructor or disposal writes can reach inherited setters.

This fixes promise creation and settlement when consumers install setters such as Object.prototype.value, which is exercised by napi-rs iterator-result hardening.

Verification

  • npm install / full workspace build
  • WASI_SDK_PATH=... npm run rebuild:w -w packages/test
  • npm run test:w -w packages/test -- promise/promise.test.js
  • focused ESLint and runtime TypeScript checks
  • git diff --check

Tracking context: rolldown/rolldown#9464

@Brooooooklyn
Brooooooklyn marked this pull request as ready for review July 16, 2026 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant