-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
src: use v8 fast api on runMicroTasks()
#51286
Conversation
you can't use a fastcall if whatever you are calling into will end up calling into JS or allocating on the v8 heap? |
That statement is true, but I don't think this applies to here. For example, the following PR run the tests properly: https://github.com/nodejs/node/pull/49893/files#diff-70e3325bd2115867617ae2a16321c5de53c070ff2841976fe5b849675a5111e6R1106, and it uses |
ah ok. are you sure it's crashing on that call and not when the microtask is being called though? i always assumed i couldn't wrap that call in a fastcall myself, but i'm probably wrong. Edit: i've just seen your stacktrace. yeah, i'm out of ideas. sorry. |
That particular error should be fixed by this:
but there are bigger problems than that. It seems that the function may lead to JS code execution down the line which is specifically not allowed for fast call API's. As an example after applying the patch:
|
As mentioned above, |
Yes, the whole point of |
I'm having crashes due to
GetCreationContextChecked()
. Any suggestions? @joyeecheung @legendecasExample crash: