Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index 5db8321db414e78a8f9eb8687511cd22c2103247..da72ecd129dde454d230806b430ac40093412334 100644 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -20398,6 +20398,7 @@ TEST(HasOwnProperty) { |
HasOwnPropertyNamedPropertyGetter)); |
Local<Object> instance = templ->NewInstance(env.local()).ToLocalChecked(); |
CHECK(!instance->HasOwnProperty(env.local(), v8_str("42")).FromJust()); |
+ CHECK(!instance->HasOwnProperty(env.local(), 42).FromJust()); |
CHECK(instance->HasOwnProperty(env.local(), v8_str("foo")).FromJust()); |
CHECK(!instance->HasOwnProperty(env.local(), v8_str("bar")).FromJust()); |
} |
@@ -20407,7 +20408,9 @@ TEST(HasOwnProperty) { |
HasOwnPropertyIndexedPropertyGetter)); |
Local<Object> instance = templ->NewInstance(env.local()).ToLocalChecked(); |
CHECK(instance->HasOwnProperty(env.local(), v8_str("42")).FromJust()); |
+ CHECK(instance->HasOwnProperty(env.local(), 42).FromJust()); |
CHECK(!instance->HasOwnProperty(env.local(), v8_str("43")).FromJust()); |
+ CHECK(!instance->HasOwnProperty(env.local(), 43).FromJust()); |
CHECK(!instance->HasOwnProperty(env.local(), v8_str("foo")).FromJust()); |
} |
{ // Check named query interceptors. |
@@ -20424,7 +20427,9 @@ TEST(HasOwnProperty) { |
0, 0, HasOwnPropertyIndexedPropertyQuery)); |
Local<Object> instance = templ->NewInstance(env.local()).ToLocalChecked(); |
CHECK(instance->HasOwnProperty(env.local(), v8_str("42")).FromJust()); |
+ CHECK(instance->HasOwnProperty(env.local(), 42).FromJust()); |
CHECK(!instance->HasOwnProperty(env.local(), v8_str("41")).FromJust()); |
+ CHECK(!instance->HasOwnProperty(env.local(), 41).FromJust()); |
} |
{ // Check callbacks. |
Local<ObjectTemplate> templ = ObjectTemplate::New(isolate); |