Hello Jakob, thanks for the reply. I put the code in another TryCatch, but
it has not been caught and there's no error. I am confused. On repeatedly
running the same code more thing once, occasionally I see the required
message.
Please find the updated exception handling code here:
std::string
The general pattern is that returned MaybeHandles (from any function, not
just JSON::Stringify) are empty when an exception has been thrown by the
operation. You can use a v8::TryCatch to catch this exception and inspect
it, it'll include a helpful error message.
On Tue, Feb 9, 2021 at 1:21 PM 'V
Hello All,
A call to JSON::Stringify is returning empty handle. I ensured that the
parameters are valid. What are the other possible reasons? I tried
retrieving the "JSON" object from the context using context->Global(), that
fails and returns empty handle.
bool toJSON(v8::Isolate *isolate,