diff options
Diffstat (limited to 'cli')
-rw-r--r-- | cli/napi/js_native_api.rs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/cli/napi/js_native_api.rs b/cli/napi/js_native_api.rs index aefe8dd0d..4dc249fff 100644 --- a/cli/napi/js_native_api.rs +++ b/cli/napi/js_native_api.rs @@ -607,10 +607,6 @@ fn napi_create_function( check_arg!(env, result); check_arg_option!(env, cb); - if length > INT_MAX as _ { - return Err(Error::InvalidArg); - } - let name = name .as_ref() .map(|_| check_new_from_utf8_len(env, name, length)) |