-
Notifications
You must be signed in to change notification settings - Fork 10
[Feature] Implement Buffer.alloc and Buffer.allocUnsafe, add tests #4
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
I like this solution better. Count the references after each test. For some reason |
Not sure what to do with the A comment to improve this eventually, once exception handling becomes a thing, is great, of course. |
I don't know exactly what you mean by "suboptimal." If you held my feet to a fire, I wouldn't mind leaving out the As for the |
With suboptimal I meant that all things |
Yeah. The We should definitely remove the RTrace stuff. |
Okay. I think the functions are ready for review. Anything that needs to be changed? |
Notes:
toThrow()
is nice here because we can assert the module will panic (and be caught inside as-pect)throw
does not exist in assemblyscript and it checks forunreachable()
instead (we can't determine why theunreachable()
occurred)E_INVALIDLENGTH
hereThoughts?