module V8::Error::Try

Public Instance Methods

try() { || ... } click to toggle source
# File lib/v8/error.rb, line 82
def try
  V8::C::TryCatch() do |trycatch|
    result = yield
    if trycatch.HasCaught()
      raise V8::Error(trycatch)
    else
      result
    end
  end
end