diff --git a/src/node_jsvmapi.cc b/src/node_jsvmapi.cc index 43af867fe8..654ed2e8dc 100644 --- a/src/node_jsvmapi.cc +++ b/src/node_jsvmapi.cc @@ -189,7 +189,7 @@ namespace v8impl { // Interface implemented by classes that wrap V8 function and property // callback info. - interface CallbackWrapper { + struct CallbackWrapper { virtual napi_value This() = 0; virtual napi_value Holder() = 0; virtual bool IsConstructCall() = 0; @@ -537,7 +537,8 @@ void napi_clear_last_error() { } const napi_extended_error_info* napi_get_last_error_info() { - static_assert(sizeof(error_messages) / sizeof(*error_messages) == napi_status_last); + static_assert(sizeof(error_messages) / sizeof(*error_messages) == napi_status_last, + "Count of error messages must match count of error values"); assert(static_last_error.error_code < napi_status_last); // Wait until someone requests the last error information to fetch the error message string