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:
parent
963c93f87d
commit
4b7edae271
2 changed files with 5 additions and 1 deletions
|
@ -24,7 +24,6 @@ namespace rr {
|
||||||
|
|
||||||
Isolate isolate(rb_isolate);
|
Isolate isolate(rb_isolate);
|
||||||
Locker lock(isolate);
|
Locker lock(isolate);
|
||||||
v8::HandleScope handle_scope(isolate);
|
|
||||||
return Context(v8::Context::New(
|
return Context(v8::Context::New(
|
||||||
isolate
|
isolate
|
||||||
// TODO
|
// TODO
|
||||||
|
|
|
@ -3,6 +3,11 @@ require 'c_spec_helper'
|
||||||
describe V8::C::Context do
|
describe V8::C::Context do
|
||||||
let(:isolate) { V8::C::Isolate::New() }
|
let(:isolate) { V8::C::Isolate::New() }
|
||||||
let(:context) { V8::C::Context::New(isolate) }
|
let(:context) { V8::C::Context::New(isolate) }
|
||||||
|
around do |example|
|
||||||
|
V8::C::HandleScope(isolate) do
|
||||||
|
example.run
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
it "can be instantiated" do
|
it "can be instantiated" do
|
||||||
expect(context).to be
|
expect(context).to be
|
||||||
|
|
Loading…
Add table
Reference in a new issue