Skip to content

Commit

Permalink
napi: Argv array pointers should be const (nodejs#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasongin authored Mar 15, 2017
1 parent e057a6f commit 960ed1d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/node_jsvmapi.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1372,7 +1372,7 @@ napi_status napi_call_function(napi_env e,
napi_value recv,
napi_value func,
int argc,
napi_value* argv,
const napi_value* argv,
napi_value* result) {
NAPI_PREAMBLE(e);
CHECK_ARG(result);
Expand Down Expand Up @@ -1881,7 +1881,7 @@ napi_status napi_close_handle_scope(napi_env e, napi_handle_scope scope) {
napi_status napi_new_instance(napi_env e,
napi_value cons,
int argc,
napi_value* argv,
const napi_value* argv,
napi_value* result) {
NAPI_PREAMBLE(e);
CHECK_ARG(result);
Expand Down Expand Up @@ -1963,7 +1963,7 @@ napi_status napi_make_callback(napi_env e,
napi_value recv,
napi_value func,
int argc,
napi_value* argv,
const napi_value* argv,
napi_value* result) {
NAPI_PREAMBLE(e);
CHECK_ARG(result);
Expand Down
6 changes: 3 additions & 3 deletions src/node_jsvmapi.h
Original file line number Diff line number Diff line change
Expand Up @@ -243,12 +243,12 @@ NODE_EXTERN napi_status napi_call_function(napi_env e,
napi_value recv,
napi_value func,
int argc,
napi_value* argv,
const napi_value* argv,
napi_value* result);
NODE_EXTERN napi_status napi_new_instance(napi_env e,
napi_value cons,
int argc,
napi_value* argv,
const napi_value* argv,
napi_value* result);
NODE_EXTERN napi_status napi_instanceof(napi_env e, napi_value obj,
napi_value cons, bool* result);
Expand All @@ -258,7 +258,7 @@ NODE_EXTERN napi_status napi_make_callback(napi_env e,
napi_value recv,
napi_value func,
int argc,
napi_value* argv,
const napi_value* argv,
napi_value* result);

// Methods to work with napi_callbacks
Expand Down

0 comments on commit 960ed1d

Please sign in to comment.