| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -676,6 +676,7 @@ const char* error_messages[] = {nullptr, | |||
| 676 | 676 | "Thread-safe function queue is full", | |
| 677 | 677 | "Thread-safe function handle is closing", | |
| 678 | 678 | "A bigint was expected", | |
| 679 | + "A date was expected", | ||
| 679 | 680 | }; | |
| 680 | 681 | ||
| 681 | 682 | napi_status napi_get_last_error_info(napi_env env, | |
@@ -688,7 +689,7 @@ napi_status napi_get_last_error_info(napi_env env, | |||
| 688 | 689 | // We don't have a napi_status_last as this would result in an ABI | |
| 689 | 690 | // change each time a message was added. | |
| 690 | 691 | static_assert( | |
| 691 | - NAPI_ARRAYSIZE(error_messages) == napi_bigint_expected + 1, | ||
| 692 | + NAPI_ARRAYSIZE(error_messages) == napi_date_expected + 1, | ||
| 692 | 693 | "Count of error messages must match count of error values"); | |
| 693 | 694 | CHECK_LE(env->last_error.error_code, napi_callback_scope_mismatch); | |
| 694 | 695 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments