Unreviewed, fix the debug build due to touching the non-declared variable in ASSERT
authorutatane.tea@gmail.com <utatane.tea@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 26 Jul 2015 21:10:47 +0000 (21:10 +0000)
committerutatane.tea@gmail.com <utatane.tea@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 26 Jul 2015 21:10:47 +0000 (21:10 +0000)
https://bugs.webkit.org/show_bug.cgi?id=147307

* runtime/ObjectConstructor.cpp:
(JSC::ownPropertyKeys):

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

Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/runtime/ObjectConstructor.cpp

index ff5a3b6..5966bb1 100644 (file)
@@ -1,3 +1,11 @@
+2015-07-26  Yusuke Suzuki  <utatane.tea@gmail.com>
+
+        Unreviewed, fix the debug build due to touching the non-declared variable in ASSERT
+        https://bugs.webkit.org/show_bug.cgi?id=147307
+
+        * runtime/ObjectConstructor.cpp:
+        (JSC::ownPropertyKeys):
+
 2015-07-25  Yusuke Suzuki  <utatane.tea@gmail.com>
 
         [ES6] Implement Reflect.ownKeys
index 377645d..a0ec736 100644 (file)
@@ -626,8 +626,9 @@ JSArray* ownPropertyKeys(ExecState* exec, JSObject* object, PropertyNameMode pro
     case PropertyNameMode::Strings: {
         size_t numProperties = properties.size();
         for (size_t i = 0; i < numProperties; i++) {
+            const auto& identifier = properties[i];
             ASSERT(!identifier.isSymbol());
-            keys->push(exec, jsOwnedString(exec, properties[i].string()));
+            keys->push(exec, jsOwnedString(exec, identifier.string()));
         }
         break;
     }