Is it possible to catch a heap limit reached exception? #22321
Unanswered
thomas9911
asked this question in
Q&A
Replies: 1 comment
-
You're probably looking for https://docs.rs/deno_core/latest/deno_core/struct.JsRuntime.html#method.add_near_heap_limit_callback |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have my code:
the error:
I tried to capture this using std::panic::catch_unwind but i assumed correctly that this doesn't work because it probably throws this panic/exception in the v8 c++ core somewhere.
Does anyone know if this is correct? and if it is even possible to capture this exception and handle it nicely?
Beta Was this translation helpful? Give feedback.
All reactions