In Files

Methods

Files

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

[Validate]

Generated with the Darkfish Rdoc Generator 2.