[Debugger] JS API: Fix project64#2122 (#2124)

This commit is contained in:
shyguyhex 2021-10-07 16:41:54 -05:00 committed by GitHub
parent 8b90894d0f
commit 921c12e4d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -62,11 +62,11 @@ duk_ret_t ScriptAPI::js_Server__finalizer(duk_context* ctx)
duk_ret_t ScriptAPI::js_Server_listen(duk_context* ctx)
{
CheckArgs(ctx, { Arg_Number, Arg_String, Arg_OptFunction });
CheckArgs(ctx, { Arg_Number, Arg_OptString, Arg_OptFunction });
CJSServerWorker* serverWorker = GetThisServer(ctx);
unsigned short port = (unsigned short)duk_get_int(ctx, 0);
const char* address = duk_get_string(ctx, 1);
const char* address = duk_get_string_default(ctx, 1, "0.0.0.0");
// todo callback