Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index a10604463219b559272d0bdab7870f03dec3563c..5571e296924c10b6597f6a6b3d83f237f01517d9 100644 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -20478,6 +20478,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()); |
} |
@@ -20487,7 +20488,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. |
@@ -20504,7 +20507,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); |