We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29b5446 commit da78201Copy full SHA for da78201
1 file changed
src/jni/Require.cpp
@@ -12,6 +12,7 @@
12
#include "ExceptionUtil.h"
13
#include "JniLocalRef.h"
14
#include "ArgConverter.h"
15
+#include "Constants.h"
16
17
#include <sstream>
18
@@ -222,6 +223,11 @@ namespace tns
222
223
224
ScriptCompiler::CachedData* Require::TryLoadScriptCache(const std::string& path)
225
{
226
+ if(!Constants::V8_CACHE_COMPILED_CODE)
227
+ {
228
+ return nullptr;
229
+ }
230
+
231
auto cachePath = path + ".cache";
232
if(!File::Exists(cachePath))
233
0 commit comments