fix(code-runtime): adopt the base seam's DUNDER_MEMBER resolution

The base seam branch resolved its DUNDER_MEMBER inconsistency by keeping
/^__.+__$/ and asserting `____` (empty middle between two `__` pairs) does not
match. Drop this branch's earlier /^__.*__$/ stopgap so the seam file is
byte-identical to its base: the earlier change only existed because the base
was self-inconsistent, and the base now owns a coherent decision.
This commit is contained in:
Chinesezjc committed 2026-08-07 13:27:54 +08:00
1 parent 104cd5f975
commit 9dc9113ed7
1 file changed
+3 -3
@@ -59,10 +59,10 @@ export const RESERVED_ERROR_MEMBERS: ReadonlySet<string> = new Set([
])
/**
* Dunder form (`__…__`, two `__` pairs with an optionally empty middle): object-protocol
* slots in Python, refused as {@link RESERVED_ERROR_MEMBERS | error members} on every backend.
* Dunder form (`__x__`, non-empty middle): object-protocol slots in Python,
* refused as {@link RESERVED_ERROR_MEMBERS | error members} on every backend.
*/
export const DUNDER_MEMBER = /^__.*__$/
export const DUNDER_MEMBER = /^__.+__$/
/**
* Reserved words of every portable target language (ECMAScript ∪ Python),