A platform for community discussion. Free, open, simple.
FIX: Ensure we have proper timeout for MiniRacer.
Guo Xiang Tane82d45b0093a
diff --git a/lib/js_locale_helper.rb b/lib/js_locale_helper.rbindex 24cd8d45fa8..8b66f56be96 100644--- a/lib/js_locale_helper.rb+++ b/lib/js_locale_helper.rb@@ -229,10 +229,10 @@ module JsLocaleHelperdef self.with_context@mutex.synchronize doyield @ctx ||= begin- ctx = MiniRacer::Context.new- ctx.load("#{Rails.root}/lib/javascripts/messageformat.js")- ctx- end+ ctx = MiniRacer::Context.new(timeout: 15000)+ ctx.load("#{Rails.root}/lib/javascripts/messageformat.js")+ ctx+ endendend