Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34.3k
src: Handle NULL env scenario#31899
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
HarshithaKP wants to merge 2 commits into nodejs:master from HarshithaKP:module_wrap_handle_null_ptr
Uh oh!
There was an error while loading. Please reload this page.
Closed
Changes from all commits
Commits
Show all changes
2 commits Select commit Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -39,6 +39,7 @@ void OnFatalError(const char* location, const char* message); | ||
| V(ERR_CONSTRUCT_CALL_INVALID, TypeError) \ | ||
| V(ERR_CRYPTO_UNKNOWN_CIPHER, Error) \ | ||
| V(ERR_CRYPTO_UNKNOWN_DH_GROUP, Error) \ | ||
| V(ERR_EXECUTION_ENVIRONMENT_NOT_AVAILABLE, Error) \ | ||
| V(ERR_INVALID_ARG_VALUE, TypeError) \ | ||
| V(ERR_OSSL_EVP_INVALID_DIGEST, Error) \ | ||
| V(ERR_INVALID_ARG_TYPE, TypeError) \ | ||
| @@ -86,28 +87,30 @@ void OnFatalError(const char* location, const char* message); | ||
| // Errors with predefined static messages | ||
| #define PREDEFINED_ERROR_MESSAGES(V) \ | ||
| V(ERR_BUFFER_CONTEXT_NOT_AVAILABLE, \ | ||
| "Buffer is not available for the current Context") \ | ||
| V(ERR_CONSTRUCT_CALL_INVALID, "Constructor cannot be called") \ | ||
| V(ERR_CONSTRUCT_CALL_REQUIRED, "Cannot call constructor without `new`") \ | ||
| V(ERR_CRYPTO_UNKNOWN_CIPHER, "Unknown cipher") \ | ||
| V(ERR_CRYPTO_UNKNOWN_DH_GROUP, "Unknown DH group") \ | ||
| V(ERR_INVALID_TRANSFER_OBJECT, "Found invalid object in transferList") \ | ||
| V(ERR_MEMORY_ALLOCATION_FAILED, "Failed to allocate memory") \ | ||
| V(ERR_OSSL_EVP_INVALID_DIGEST, "Invalid digest used") \ | ||
| V(ERR_MISSING_MESSAGE_PORT_IN_TRANSFER_LIST, \ | ||
| "MessagePort was found in message but not listed in transferList") \ | ||
| V(ERR_MISSING_PLATFORM_FOR_WORKER, \ | ||
| "The V8 platform used by this instance of Node does not support " \ | ||
| "creating Workers") \ | ||
| V(ERR_NON_CONTEXT_AWARE_DISABLED, \ | ||
| "Loading non context-aware native modules has been disabled") \ | ||
| V(ERR_SCRIPT_EXECUTION_INTERRUPTED, \ | ||
| "Script execution was interrupted by `SIGINT`") \ | ||
| V(ERR_TRANSFERRING_EXTERNALIZED_SHAREDARRAYBUFFER, \ | ||
| "Cannot serialize externalized SharedArrayBuffer") \ | ||
| V(ERR_TLS_PSK_SET_IDENTIY_HINT_FAILED, "Failed to set PSK identity hint") \ | ||
| #define PREDEFINED_ERROR_MESSAGES(V) \ | ||
| V(ERR_BUFFER_CONTEXT_NOT_AVAILABLE, \ | ||
| "Buffer is not available for the current Context") \ | ||
| V(ERR_CONSTRUCT_CALL_INVALID, "Constructor cannot be called") \ | ||
| V(ERR_CONSTRUCT_CALL_REQUIRED, "Cannot call constructor without `new`") \ | ||
| V(ERR_CRYPTO_UNKNOWN_CIPHER, "Unknown cipher") \ | ||
| V(ERR_CRYPTO_UNKNOWN_DH_GROUP, "Unknown DH group") \ | ||
| V(ERR_EXECUTION_ENVIRONMENT_NOT_AVAILABLE, \ | ||
| "Context not associated with Node.js environment") \ | ||
| V(ERR_INVALID_TRANSFER_OBJECT, "Found invalid object in transferList") \ | ||
| V(ERR_MEMORY_ALLOCATION_FAILED, "Failed to allocate memory") \ | ||
| V(ERR_OSSL_EVP_INVALID_DIGEST, "Invalid digest used") \ | ||
| V(ERR_MISSING_MESSAGE_PORT_IN_TRANSFER_LIST, \ | ||
| "MessagePort was found in message but not listed in transferList") \ | ||
| V(ERR_MISSING_PLATFORM_FOR_WORKER, \ | ||
| "The V8 platform used by this instance of Node does not support " \ | ||
| "creating Workers") \ | ||
| V(ERR_NON_CONTEXT_AWARE_DISABLED, \ | ||
| "Loading non context-aware native modules has been disabled") \ | ||
| V(ERR_SCRIPT_EXECUTION_INTERRUPTED, \ | ||
| "Script execution was interrupted by `SIGINT`") \ | ||
| V(ERR_TRANSFERRING_EXTERNALIZED_SHAREDARRAYBUFFER, \ | ||
| "Cannot serialize externalized SharedArrayBuffer") \ | ||
| V(ERR_TLS_PSK_SET_IDENTIY_HINT_FAILED, "Failed to set PSK identity hint") | ||
addaleax marked this conversation as resolved. Outdated Show resolvedHide resolvedUh oh!There was an error while loading. Please reload this page. | ||
| #define V(code, message) \ | ||
| inline v8::Local<v8::Value> code(v8::Isolate* isolate){\ | ||
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.