Sha256: c66f69bd8ecac0da73afb7d5040d51548b8d754b328e447880128e927f4bc54e

Contents?: true

Size: 281 Bytes

Versions: 11

Compression:

Stored size: 281 Bytes

Contents

class V8::Error
  module Try
    def try
      context = V8::Context.current
      V8::C::TryCatch() do |trycatch|
        result = yield
        if trycatch.HasCaught()
          V8::Error(trycatch.Exception())
        else
          result
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
therubyracer-0.11.0beta6-x86-linux lib/v8/error/try.rb
therubyracer-0.11.0beta6-x86_64-linux lib/v8/error/try.rb
therubyracer-0.11.0beta6 lib/v8/error/try.rb
therubyracer-0.11.0beta5-x86-linux lib/v8/error/try.rb
therubyracer-0.11.0beta5 lib/v8/error/try.rb
therubyracer-0.11.0beta5-x86_64-linux lib/v8/error/try.rb
therubyracer-0.11.0beta4 lib/v8/error/try.rb
therubyracer-0.11.0beta3 lib/v8/error/try.rb
therubyracer-0.11.0beta2-x86_64-linux lib/v8/error/try.rb
therubyracer-0.11.0beta2 lib/v8/error/try.rb
therubyracer-0.11.0beta1 lib/v8/error/try.rb