1
0
Fork 0
mirror of https://github.com/rubyjs/therubyracer synced 2023-03-27 23:21:42 -04:00

don't create handle scope in context creation

This commit is contained in:
Charles Lowell 2015-07-05 19:53:17 -05:00
parent 963c93f87d
commit 4b7edae271
2 changed files with 5 additions and 1 deletions

View file

@ -24,7 +24,6 @@ namespace rr {
Isolate isolate(rb_isolate);
Locker lock(isolate);
v8::HandleScope handle_scope(isolate);
return Context(v8::Context::New(
isolate
// TODO

View file

@ -3,6 +3,11 @@ require 'c_spec_helper'
describe V8::C::Context do
let(:isolate) { V8::C::Isolate::New() }
let(:context) { V8::C::Context::New(isolate) }
around do |example|
V8::C::HandleScope(isolate) do
example.run
end
end
it "can be instantiated" do
expect(context).to be