Initialize the v8 context after forking.

This commit is contained in:
Guo Xiang Tan 2018-06-05 11:35:38 +08:00
parent 475d944d74
commit 41c4e32e64
1 changed files with 1 additions and 0 deletions

View File

@ -451,6 +451,7 @@ module Discourse
# in case v8 was initialized we want to make sure it is nil
PrettyText.reset_context
PrettyText.v8
Tilt::ES6ModuleTranspilerTemplate.reset_context if defined? Tilt::ES6ModuleTranspilerTemplate
JsLocaleHelper.reset_context if defined? JsLocaleHelper