Skip to content

A platform for community discussion. Free, open, simple.

Initialize the v8 context after forking.

Guo Xiang Tan41c4e32e6428
diff --git a/lib/discourse.rb b/lib/discourse.rb
index 79e59845982..92600ab61b7 100644
--- a/lib/discourse.rb
+++ b/lib/discourse.rb
@@ -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