fix for last test
This commit is contained in:
parent
211f0eddd5
commit
ced472b47e
|
@ -5,7 +5,6 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <JavaScriptCore/JSBase.h>
|
#include <JavaScriptCore/JSBase.h>
|
||||||
#include <string>
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
|
@ -108,7 +108,9 @@ std::map<std::string, JSValueRef> &RJSPrototypes(Realm *realm) {
|
||||||
// static std::string s_defaultPath = realm::default_realm_file_directory() + "/default.realm";
|
// static std::string s_defaultPath = realm::default_realm_file_directory() + "/default.realm";
|
||||||
static std::string s_defaultPath = "";
|
static std::string s_defaultPath = "";
|
||||||
std::string RJSDefaultPath() {
|
std::string RJSDefaultPath() {
|
||||||
|
if (s_defaultPath.size() == 0) {
|
||||||
s_defaultPath = realm::default_realm_file_directory() + "/default.realm";
|
s_defaultPath = realm::default_realm_file_directory() + "/default.realm";
|
||||||
|
}
|
||||||
return s_defaultPath;
|
return s_defaultPath;
|
||||||
}
|
}
|
||||||
void RJSSetDefaultPath(std::string path) {
|
void RJSSetDefaultPath(std::string path) {
|
||||||
|
|
Loading…
Reference in New Issue