spec icon indicating copy to clipboard operation
spec copied to clipboard

[spec] GC objects no-op prevent extensions

Open mhofman opened this issue 4 months ago • 2 comments

Fixes https://github.com/WebAssembly/spec/issues/2008

mhofman avatar Oct 09 '25 18:10 mhofman

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.

WebReflection avatar Oct 09 '25 20:10 WebReflection

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

tlively avatar Oct 10 '25 16:10 tlively