1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-11 05:43:33 +00:00

1. Fixed compiler warning

2. Fixed bug where process.arch wasn't defined
3. Integrated PE_Parser on windows
This commit is contained in:
Bryan Roe
2019-03-04 18:24:07 -08:00
parent c8c366ff5a
commit 268b0dd26f
2 changed files with 8 additions and 13 deletions

File diff suppressed because one or more lines are too long

View File

@@ -957,15 +957,6 @@ void ILibDuktape_ScriptContainer_Process_Init(duk_context *ctx, char **argList)
duk_put_prop_string(ctx, -2, ILibDuktape_ScriptContainer_Process_ArgArray); // [g][process]
}
if (duk_peval_string(ctx, "require('os').arch();") == 0) // [g][process][arch]
{
ILibDuktape_CreateReadonlyProperty(ctx, "arch"); // [g][process]
}
else
{ // [g][process]
duk_pop(ctx);
}
#ifdef _POSIX
duk_push_int(ctx, (duk_int_t)getpid());
ILibDuktape_CreateReadonlyProperty(ctx, "pid");