summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype/includes/tolength-length.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Array/prototype/includes/tolength-length.js')
-rw-r--r--test/built-ins/Array/prototype/includes/tolength-length.js12
1 files changed, 10 insertions, 2 deletions
diff --git a/test/built-ins/Array/prototype/includes/tolength-length.js b/test/built-ins/Array/prototype/includes/tolength-length.js
index a3c868474..c1e82b9da 100644
--- a/test/built-ins/Array/prototype/includes/tolength-length.js
+++ b/test/built-ins/Array/prototype/includes/tolength-length.js
@@ -72,8 +72,16 @@ assert.sameValue([].includes.call(obj, "a"), false, "false");
obj.length = true;
assert.sameValue([].includes.call(obj, "a"), true, "true");
-obj.length = { valueOf: function() { return 2; } };
+obj.length = {
+ valueOf: function() {
+ return 2;
+ }
+};
assert.sameValue([].includes.call(obj, "b"), true, "ordinary object.valueOf");
-obj.length = { toString: function() { return 2; } };
+obj.length = {
+ toString: function() {
+ return 2;
+ }
+};
assert.sameValue([].includes.call(obj, "b"), true, "ordinary object.toString");