Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index 226d01db62955e0b76d91c14bb89b9fe245a8f30..d7b6953708ae5f56d2b2758ded62063779f8afdb 100644 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -16666,6 +16666,18 @@ TEST(PersistentHandleVisitor) { |
} |
+TEST(WrapperClassId) { |
+ v8::HandleScope scope; |
+ LocalContext context; |
+ v8::Persistent<v8::Object> object = |
+ v8::Persistent<v8::Object>::New(v8::Object::New()); |
+ CHECK_EQ(0, object.WrapperClassId()); |
+ object.SetWrapperClassId(65535); |
+ CHECK_EQ(65535, object.WrapperClassId()); |
+ object.Dispose(); |
+} |
+ |
+ |
TEST(RegExp) { |
v8::HandleScope scope; |
LocalContext context; |