Skip to content

Commit

Permalink
src: Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
JckXia committed Feb 7, 2023
1 parent 8de56c3 commit fd34a24
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions napi-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -2850,6 +2850,7 @@ inline TypeError::TypeError(napi_env env, napi_value value)
#endif

if (!isTypeError) {
// TODO: What should we do if the napi_value passed in isn't an TypeError?
NAPI_THROW_VOID(Napi::Error::New(env, "We expect a TypeError object"));
}
}
Expand Down

0 comments on commit fd34a24

Please sign in to comment.