Commit 535e221d authored by cbruni's avatar cbruni Committed by Commit bot

[runtime] Rename IsPropertyEnumerable to PropertyIsEnumerable conforming to the spec.

BUG=

Review URL: https://codereview.chromium.org/1491613002

Cr-Commit-Position: refs/heads/master@{#32513}
parent 1125f160
......@@ -200,7 +200,7 @@ function ObjectIsPrototypeOf(V) {
// ES6 19.1.3.4
function ObjectPropertyIsEnumerable(V) {
var P = TO_NAME(V);
return %IsPropertyEnumerable(TO_OBJECT(this), P);
return %PropertyIsEnumerable(TO_OBJECT(this), P);
}
......@@ -1177,7 +1177,7 @@ function ObjectAssign(target, sources) {
for (var j = 0; j < len; ++j) {
var key = keys[j];
if (%IsPropertyEnumerable(from, key)) {
if (%PropertyIsEnumerable(from, key)) {
var propValue = from[key];
to[key] = propValue;
}
......
......@@ -756,7 +756,7 @@ RUNTIME_FUNCTION(Runtime_HasProperty) {
}
RUNTIME_FUNCTION(Runtime_IsPropertyEnumerable) {
RUNTIME_FUNCTION(Runtime_PropertyIsEnumerable) {
HandleScope scope(isolate);
DCHECK(args.length() == 2);
......
......@@ -450,7 +450,7 @@ namespace internal {
F(DeleteProperty_Strict, 2, 1) \
F(HasOwnProperty, 2, 1) \
F(HasProperty, 2, 1) \
F(IsPropertyEnumerable, 2, 1) \
F(PropertyIsEnumerable, 2, 1) \
F(GetPropertyNamesFast, 1, 1) \
F(GetOwnPropertyNames, 2, 1) \
F(GetOwnElementNames, 1, 1) \
......
......@@ -9179,7 +9179,7 @@ THREADED_TEST(CrossDomainDelete) {
}
THREADED_TEST(CrossDomainIsPropertyEnumerable) {
THREADED_TEST(CrossDomainPropertyIsEnumerable) {
LocalContext env1;
v8::HandleScope handle_scope(env1->GetIsolate());
v8::Local<Context> env2 = Context::New(env1->GetIsolate());
......@@ -21008,7 +21008,7 @@ TEST(AccessCheckThrows) {
CheckCorrectThrow("%DeleteProperty_Strict(other, '1')");
CheckCorrectThrow("%HasOwnProperty(other, 'x')");
CheckCorrectThrow("%HasProperty('x', other)");
CheckCorrectThrow("%IsPropertyEnumerable(other, 'x')");
CheckCorrectThrow("%PropertyIsEnumerable(other, 'x')");
// PROPERTY_ATTRIBUTES_NONE = 0
CheckCorrectThrow("%DefineAccessorPropertyUnchecked("
"other, 'x', null, null, 1)");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment