Sha256: 9d186b7e3a22d1b7523098174c3b97b35eb96183f1f893f73bb7cbcd67aeb249
Contents?: true
Size: 515 Bytes
Versions: 4
Compression:
Stored size: 515 Bytes
Contents
require 'spec_helper' describe V8::Error do it "uses the same ruby exception through multiple language boundaries" do V8::Context.new do |cxt| error = StandardError.new('potato') cxt['one'] = lambda do cxt.eval('two()', 'one.js') end cxt['two'] = lambda do cxt.eval('three()', 'two.js') end cxt['three'] = lambda do raise error end lambda { cxt.eval('one()') }.should raise_error {|e| e.should be error} end end end
Version data entries
4 entries across 4 versions & 1 rubygems