Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
toyobayashi committed Feb 24, 2024
1 parent 606b632 commit 1a934c7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/test/buffer/binding.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,10 @@ static napi_value invalidObjectAsBuffer(napi_env env, napi_callback_info info) {

napi_value notTheBuffer = args[0];
napi_status status = napi_get_buffer_info(env, notTheBuffer, NULL, NULL);
NODE_API_ASSERT(env, status == napi_invalid_arg,
"napi_get_buffer_info: should fail with napi_invalid_arg when passed non buffer");
NODE_API_ASSERT(env,
status == napi_invalid_arg,
"napi_get_buffer_info: should fail with napi_invalid_arg "
"when passed non buffer");

return notTheBuffer;
}
Expand Down

0 comments on commit 1a934c7

Please sign in to comment.