Changed JSRunTime_size_mib key to jsruntime-size-mib for consistency with most other keys in .GNUstepDefaults.

master
AnotherCommander 2020-07-02 21:36:17 +02:00
parent 978ed69565
commit 91ad8830fa
1 changed files with 1 additions and 1 deletions

View File

@ -279,7 +279,7 @@ static void ReportJSError(JSContext *context, const char *message, JSErrorReport
assert(sizeof(jschar) == sizeof(unichar));
// initialize the JS run time, and return result in runtime.
uint32_t jsRuntimeInMiB = [defaults oo_intForKey:@"JSRunTime_size_mib" defaultValue:OOJS_RUNTIME_SIZE_MiB];
uint32_t jsRuntimeInMiB = [defaults oo_intForKey:@"jsruntime-size-mib" defaultValue:OOJS_RUNTIME_SIZE_MiB];
_runtime = JS_NewRuntime(jsRuntimeInMiB * 1024L * 1024L);
// if runtime creation failed, end the program here.