| Index: test/cctest/test-api.cc
|
| diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc
|
| index 8142228a4a90a8430d98dfdbb0392ed327bd12cf..2f7c3060270ff826c4c280bc680b7ee4a376453c 100644
|
| --- a/test/cctest/test-api.cc
|
| +++ b/test/cctest/test-api.cc
|
| @@ -25938,3 +25938,14 @@ TEST(EvalInAccessCheckedContext) {
|
| CHECK_EQ(42, x_value->Int32Value(context1).FromJust());
|
| context1->Exit();
|
| }
|
| +
|
| +TEST(InternalFieldsOnGlobalProxy) {
|
| + v8::Isolate* isolate = CcTest::isolate();
|
| + v8::HandleScope scope(isolate);
|
| +
|
| + v8::Local<v8::ObjectTemplate> obj_template = v8::ObjectTemplate::New(isolate);
|
| +
|
| + v8::Local<v8::Context> context = Context::New(isolate, nullptr, obj_template);
|
| + v8::Local<v8::Object> global = context->Global();
|
| + CHECK_EQ(v8::Context::kProxyInternalFieldCount, global->InternalFieldCount());
|
| +}
|
|
|