Unverified Commit b34a1e17 authored by Zhenzhen Zhan's avatar Zhenzhen Zhan Committed by Ruben Bridgewater
Browse files

module: fix `e.stack` error when throwing undefined or null

Adds a test for module loading when throwing undefined or null.

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


Reviewed-By: default avatarAnna Henningsen <anna@addaleax.net>
Reviewed-By: default avatarMichaël Zasso <targos@protonmail.com>
Reviewed-By: default avatarBenjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: default avatarColin Ihrig <cjihrig@gmail.com>
Reviewed-By: default avatarJan Krems <jan.krems@gmail.com>
Reviewed-By: default avatarRuben Bridgewater <ruben@bridgewater.de>
Reviewed-By: default avatarTiancheng "Timothy" Gu <timothygu99@gmail.com>
parent 9d4ab901
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