Skip to content

Conversation

nielsdos
Copy link
Member

@nielsdos nielsdos commented Oct 6, 2025

No description provided.

$obj = new stdClass;
$map = new WeakMap;
$integer = 1;
$map[$obj] = 0;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line is necessary as a ref-assign uses read_dimension, and that won't work if the object is not yet in the map. Perhaps we should make this relaxed for BP_VAR_RW such that a direct reference assign is possible, but that's likely master-only-material.

@nielsdos nielsdos linked an issue Oct 6, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Assertion failure in WeakMap offset operations on reference
2 participants