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 c05fd6f commit bf4c82eCopy full SHA for bf4c82e
1 file changed
src/jni/Require.cpp
@@ -254,6 +254,11 @@ namespace tns
254
255
void Require::SaveScriptCache(const ScriptCompiler::Source& source, const std::string& path)
256
{
257
+ if(!Constants::V8_CACHE_COMPILED_CODE)
258
+ {
259
+ return;
260
+ }
261
+
262
int length = source.GetCachedData()->length;
263
auto cachePath = path + ".cache";
264
auto file = fopen(cachePath.c_str(), "wb" /* write binary */);
0 commit comments