test: migrate message error tests from Python to JS
Migrate the remaining error tests in the test/message
folder from Python to JS.
Fixes: nodejs#47707
Migrated tests:
error/
core_line_numbers.js
core_line_numbers.out
if-error-has-good-stack.js
if-error-has-good-stack.out
promise_unhandled_warn_with_error.js
promise_unhandled_warn_with_error.out
test-no-extra-info-on-fatal-exception.js
test-no-extra-info-on-fatal-exception.out
throw_error_with_getter_throw.js
throw_error_with_getter_throw.out
throw_null.js
throw_null.out
throw_undefined.js
throw_undefined.out
timeout_throw.js
timeout_throw.out
undefined_reference_in_new_context.js
undefined_reference_in_new_context.out
unhandled_promise_trace_warnings.js
unhandled_promise_trace_warnings.out