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 83c43b2 commit c05fd6fCopy full SHA for c05fd6f
1 file changed
src/jni/Require.cpp
@@ -150,7 +150,10 @@ namespace tns
150
}
151
else
152
{
153
- option = ScriptCompiler::kProduceCodeCache;
+ if(Constants::V8_CACHE_COMPILED_CODE)
154
+ {
155
+ option = ScriptCompiler::kProduceCodeCache;
156
+ }
157
script = ScriptCompiler::Compile(isolate->GetCurrentContext(), &source, option).ToLocalChecked();
158
SaveScriptCache(source, path);
159
0 commit comments