Unverified Commit 8834ec9f authored by Joyee Cheung's avatar Joyee Cheung
Browse files

src: throw error in LoadBuiltinModuleSource when reading fails

- Move the file reading code in LoadBuiltinModuleSource into
  util.h so that it can be reused by other C++ code, and
  return an error code from it when there is a failure for
  the caller to generate an error.
- Throw an error when reading local builtins fails in
  LoadBulitinModuleSource.

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


Reviewed-By: default avatarChengzhong Wu <legendecas@gmail.com>
parent c109a6cc
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