| Index: test/cctest/cctest.h
|
| diff --git a/test/cctest/cctest.h b/test/cctest/cctest.h
|
| index 122d36d5b8383fb30abbcb4fbb359f22ebfc21fb..bc800399abb656997748c8d92a66a8f2f9ac5be6 100644
|
| --- a/test/cctest/cctest.h
|
| +++ b/test/cctest/cctest.h
|
| @@ -93,6 +93,7 @@ class CcTest {
|
| bool enabled() { return enabled_; }
|
|
|
| static v8::Isolate* isolate() {
|
| + CHECK(isolate_ != NULL);
|
| isolate_used_ = true;
|
| return isolate_;
|
| }
|
| @@ -105,6 +106,10 @@ class CcTest {
|
| return i_isolate()->heap();
|
| }
|
|
|
| + static v8::Local<v8::Object> global() {
|
| + return isolate()->GetCurrentContext()->Global();
|
| + }
|
| +
|
| // TODO(dcarney): Remove.
|
| // This must be called first in a test.
|
| static void InitializeVM() {
|
| @@ -115,6 +120,9 @@ class CcTest {
|
| v8::Context::New(CcTest::isolate())->Enter();
|
| }
|
|
|
| + // Only for UNINITIALIZED_TESTs
|
| + static void DisableAutomaticDispose();
|
| +
|
| // Helper function to configure a context.
|
| // Must be in a HandleScope.
|
| static v8::Local<v8::Context> NewContext(
|
|
|