Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index 1dbc399479ed02dc2a7183a88b5bec1d32b97729..2fc54144ec9cef93175691d63f485169e5457451 100644 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -2360,6 +2360,16 @@ THREADED_TEST(GlobalHandle) { |
} |
+THREADED_TEST(LocalHandle) { |
+ v8::HandleScope scope; |
+ v8::Local<String> local = v8::Local<String>::New(v8_str("str")); |
+ CHECK_EQ(local->Length(), 3); |
+ |
+ local = v8::Local<String>::New(v8::Isolate::GetCurrent(), v8_str("str")); |
+ CHECK_EQ(local->Length(), 3); |
+} |
+ |
+ |
class WeakCallCounter { |
public: |
explicit WeakCallCounter(int id) : id_(id), number_of_weak_calls_(0) { } |