-
Notifications
You must be signed in to change notification settings - Fork 3.5k
TypeScript: read vtable entries as uint16 #8435
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
This pull request is stale because it has been open 6 months with no activity. Please comment or label |
|
Still valid I believe. |
bjornharrtell
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
@jtbandes sorry this never got in, if you have time to resolve the conflict I'll try to get attention to it. |
b136995 to
511c65f
Compare
|
@bjornharrtell done, thanks. |
|
@bjornharrtell thanks so much for pushing this along ❤️ Do you have an idea of when it might be available in a new release? |
|
@jtbandes nope I'm just a janitor. 😜 |
According to the internals docs, vtable entries are uint16 rather than int16.
This change allows reading to work when vtable entries are larger than 2^15-1 (which already works in C++). For example, the following schema is now readable:
(I ran into this bug in the wild when a user showed up with a schema having ~4500 fields, mostly
doubles.)