From 67e9e070ef5991ea9d36713d339e2ab5fb2709bb Mon Sep 17 00:00:00 2001
From: Mike Pennisi <mike@mikepennisi.com>
Date: Tue, 21 Apr 2015 17:58:10 -0400
Subject: [PATCH] Correct error messages

The `testBuiltInObject` function verifies the presence of the specified
properties for *all* object types (not just function objects). Update
the error messages to reflect this.
---
 harness/testBuiltInObject.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/harness/testBuiltInObject.js b/harness/testBuiltInObject.js
index 197cae36e2..a9c498c136 100644
--- a/harness/testBuiltInObject.js
+++ b/harness/testBuiltInObject.js
@@ -81,13 +81,13 @@ function testBuiltInObject(obj, isFunction, isConstructor, properties, length) {
         }
         // accessor properties don't have writable attribute
         if (desc.hasOwnProperty("writable") && !desc.writable) {
-            $ERROR("The " + prop + " property of this built-in function must be writable.");
+            $ERROR("The " + prop + " property of this built-in object must be writable.");
         }
         if (desc.enumerable) {
-            $ERROR("The " + prop + " property of this built-in function must not be enumerable.");
+            $ERROR("The " + prop + " property of this built-in object must not be enumerable.");
         }
         if (!desc.configurable) {
-            $ERROR("The " + prop + " property of this built-in function must be configurable.");
+            $ERROR("The " + prop + " property of this built-in object must be configurable.");
         }
     });
 
-- 
GitLab