Skip to content

Commit 1d3cc0a

Browse files
committed
Enable parser state cache by default
Only enables the parser state cache config option by default. We don't actually generate the parser state cache when parsing normally, only when user explicitly calls `JsSerializeParserState`. The state object returned then needs to be passed back into either `JsRunScriptWithParserState` or `JsDeserializeParserState`. The point of enabling this config option by default is so that user code doesn't hit an assert when trying to call those above 3 API.
1 parent bc8b279 commit 1d3cc0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Common/ConfigFlagsList.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ PHASE(All)
451451
#define DEFAULT_CONFIG_HybridFgJit (false)
452452
#define DEFAULT_CONFIG_HybridFgJitBgQueueLengthThreshold (32)
453453
#define DEFAULT_CONFIG_Prejit (false)
454-
#define DEFAULT_CONFIG_ParserStateCache (false)
454+
#define DEFAULT_CONFIG_ParserStateCache (true)
455455
#define DEFAULT_CONFIG_CompressParserStateCache (false)
456456
#define DEFAULT_CONFIG_DeferTopLevelTillFirstCall (true)
457457
#define DEFAULT_CONFIG_DirectCallTelemetryStats (false)

0 commit comments

Comments
 (0)