Sha256: 2a97d9dd3851e194b4bfc457f0b7fea9098fa95b38671f134c63ea021b3a4254

Contents?: true

Size: 299 Bytes

Versions: 22

Compression:

Stored size: 299 Bytes

Contents

require "#{File.dirname(__FILE__)}/../spec_helper.rb"

include V8

describe C::Object do
  it "has a reference to its calling context" do
    C::Context.new.open do |cxt|
      o = cxt.eval('new Object()', '<eval>');
      o.context.should == cxt
      o.context.should be_eql(cxt)
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
therubyracer-0.6.3 spec/ext/obj_spec.rb
therubyracer-0.6.2 spec/ext/obj_spec.rb
therubyracer-0.6.1 spec/ext/obj_spec.rb
therubyracer-0.6.0 spec/ext/obj_spec.rb
therubyracer-0.5.5 spec/ext/obj_spec.rb
therubyracer-0.5.4 spec/ext/obj_spec.rb
therubyracer-0.5.3 spec/ext/obj_spec.rb
therubyracer-0.5.2-x86-darwin-10 spec/ext/obj_spec.rb
therubyracer-0.5.2 spec/ext/obj_spec.rb
therubyracer-0.5.1-x86-darwin-9 spec/ext/obj_spec.rb
therubyracer-0.5.1-x86-darwin-10 spec/ext/obj_spec.rb
therubyracer-0.5.1 spec/ext/obj_spec.rb
therubyracer-0.5.0-x86-darwin-9 spec/ext/obj_spec.rb
therubyracer-0.5.0-x86-linux spec/ext/obj_spec.rb
therubyracer-0.5.0-x86_64-linux spec/ext/obj_spec.rb
therubyracer-0.4.9-x86_64-linux spec/ext/obj_spec.rb
therubyracer-0.5.0-x86-darwin-10 spec/ext/obj_spec.rb
therubyracer-0.5.0 spec/ext/obj_spec.rb
therubyracer-0.4.9-x86-linux spec/ext/obj_spec.rb
therubyracer-0.4.9-x86-darwin-10 spec/ext/obj_spec.rb