镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

[spec] GC objects no-op prevent extensions - #2009

Open
mhofman wants to merge 1 commit into
WebAssembly:mainfrom
mhofman:prevent-extensions
Open

mhofman wants to merge 1 commit into
WebAssembly:mainfrom
mhofman:prevent-extensions

Conversation

@mhofman

@mhofman mhofman commented Oct 9, 2025

Copy link
Copy Markdown

Fixes #2008

@WebReflection

Copy link
Copy Markdown

LGTM but if we could add:

test(() => {
  const struct = functions.makeStruct();
  const array = functions.makeArray();
  assert_true((() => { for (const _ in struct); return true; })());
  assert_true((() => { for (const _ in array); return true; })());
}, "for...in");

then we'd be more covered around the current state, imho.

@tlively

tlively commented Oct 10, 2025

Copy link
Copy Markdown
Member

This change to intentionally-designed behavior should be discussed with the CG first. Let's keep further discussion on #2008.

This branch has not been deployed

No deployments
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.

gc-exotic-objects [[PreventExtensions]] should return true.

3 participants