fix/scope-parent-cycle #92

Merged
sergeych merged 2 commits from fix/scope-parent-cycle into master 2025-12-11 03:09:45 +03:00
Owner
No description provided.
sergeych added 2 commits 2025-12-11 03:08:22 +03:00
- Scope.resetForReuse: fully detach before re-parenting (clear state, parent=null, new frameId), then validate with ensureNoCycle and assign parent/args/pos/thisObj
- ScopePool.borrow (JVM/Android/JS/Native/Wasm): defensive fallback to fresh Scope allocation if resetForReuse detects a cycle
- docs: add docs/fix-scope-parent-cycle.md describing the change and expectations
- test: add ScopeCycleRegressionTest to ensure instance method call pattern does not crash and returns "ok"
Author
Owner

This seems to fix critical while exotic and rare problem; all existing tests are ok with it so I do merge it

This seems to fix critical while exotic and rare problem; all existing tests are ok with it so I do merge it
sergeych merged commit bce88ced43 into master 2025-12-11 03:09:45 +03:00
Sign in to join this conversation.
No description provided.