Commit 46526d6c authored by Michaël Zasso's avatar Michaël Zasso Committed by Node.js GitHub Bot
Browse files

errors: support possible deletion of globalThis.Error

Do not crash trying to access prepareStackTrace on `undefined`.

PR-URL: https://github.com/nodejs/node/pull/35499


Reviewed-By: default avatarJoyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: default avatarBenjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: default avatarAnna Henningsen <anna@addaleax.net>
Reviewed-By: default avatarRich Trott <rtrott@gmail.com>
Reviewed-By: default avatarUjjwal Sharma <ryzokuken@disroot.org>
Reviewed-By: default avatarShingo Inoue <leko.noor@gmail.com>
parent 27c77b93
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment