Update test result after r217585.
authorweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 31 May 2017 05:15:00 +0000 (05:15 +0000)
committerweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 31 May 2017 05:15:00 +0000 (05:15 +0000)
* bindings/scripts/test/JS/JSTestNamedDeleterWithIndexedGetter.cpp:
(WebCore::JSTestNamedDeleterWithIndexedGetter::deleteProperty):
(WebCore::JSTestNamedDeleterWithIndexedGetter::deletePropertyByIndex):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@217590 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/bindings/scripts/test/JS/JSTestNamedDeleterWithIndexedGetter.cpp

index f20395c..c058873 100644 (file)
@@ -1,3 +1,11 @@
+2017-05-30  Sam Weinig  <sam@webkit.org>
+
+        Update test result after r217585.
+
+        * bindings/scripts/test/JS/JSTestNamedDeleterWithIndexedGetter.cpp:
+        (WebCore::JSTestNamedDeleterWithIndexedGetter::deleteProperty):
+        (WebCore::JSTestNamedDeleterWithIndexedGetter::deletePropertyByIndex):
+
 2017-05-30  Dan Bernstein  <mitz@apple.com>
 
         Fixed the build after r217588.
index d40802d..1d63c10 100644 (file)
@@ -186,7 +186,7 @@ bool JSTestNamedDeleterWithIndexedGetter::deleteProperty(JSCell* cell, ExecState
     auto& thisObject = *jsCast<JSTestNamedDeleterWithIndexedGetter*>(cell);
     auto& impl = thisObject.wrapped();
     if (auto index = parseIndex(propertyName))
-        return !impl.isSupportedPropertyIndex(index.value()) ? true : false;
+        return !impl.isSupportedPropertyIndex(index.value());
     if (isVisibleNamedProperty<false>(*state, thisObject, propertyName)) {
         return impl.deleteNamedProperty(propertyNameToString(propertyName));
     }
@@ -197,7 +197,7 @@ bool JSTestNamedDeleterWithIndexedGetter::deletePropertyByIndex(JSCell* cell, Ex
 {
     auto& thisObject = *jsCast<JSTestNamedDeleterWithIndexedGetter*>(cell);
     auto& impl = thisObject.wrapped();
-    return !impl.isSupportedPropertyIndex(index) ? true : false;
+    return !impl.isSupportedPropertyIndex(index);
 }
 
 EncodedJSValue jsTestNamedDeleterWithIndexedGetterConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName)