increase es6 transpiler timeout from 5 to 10 sec
This commit is contained in:
parent
2e808ba8ab
commit
8f59917f6b
|
@ -29,7 +29,7 @@ module Tilt
|
|||
end
|
||||
|
||||
def self.create_new_context
|
||||
ctx = V8::Context.new(timeout: 5000)
|
||||
ctx = V8::Context.new(timeout: 10000)
|
||||
ctx.eval("var self = this; #{File.read(Babel::Transpiler.script_path)}")
|
||||
ctx.eval("module = {}; exports = {};");
|
||||
ctx.load("#{Rails.root}/lib/es6_module_transpiler/support/es6-module-transpiler.js")
|
||||
|
|
|
@ -78,7 +78,7 @@ module PrettyText
|
|||
|
||||
def self.create_new_context
|
||||
# timeout any eval that takes longer that 5 seconds
|
||||
ctx = V8::Context.new(timeout: 5000)
|
||||
ctx = V8::Context.new(timeout: 10000)
|
||||
|
||||
ctx["helpers"] = Helpers.new
|
||||
|
||||
|
|
Loading…
Reference in New Issue