Skip to content

Conversation

BarrensZeppelin
Copy link

@BarrensZeppelin BarrensZeppelin commented Aug 26, 2025

Since SyntaxNode defines type as an accessor property, the write to nodeSubclass.prototype.type is silently swallowed.
We can work around this by defining the type with Object.defineProperty.

Since `SyntaxNode` defines `type` as an accessor property, the write to
`nodeSubclass.prototype.type` is silently swallowed.
We can work around this by defining the type with
`Object.defineProperty`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant