• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

KarpelesLab / goro / 26061116615

18 May 2026 09:19PM UTC coverage: 12.274% (+0.01%) from 12.264%
26061116615

push

github

MagicalTux
vm: lower unset() for simple-local args natively

Adds OP_UNSET_LOCAL that fires the destructor on the slot value,
clears the slot, and (for slot-unsafe bodies) calls OffsetUnset so
external observers see the removal. The emitter picks the native
path only when every unset arg is a plain \$name; array-access,
object-prop, and static-prop forms keep the existing AST path.

CallDestructorIfNeeded is exported so the VM can reuse the
recursive array-walker + destructor-chain that runnableUnset.Run
already implements — no duplication.

Bodies that only use unset() on simple locals are now slot-safe.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

39 of 53 new or added lines in 5 files covered. (73.58%)

12 existing lines in 4 files now uncovered.

14318 of 116654 relevant lines covered (12.27%)

2598.98 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

50.94
/core/phpctx/global-array.go


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc