From 51fac5f93bf75c25ae2072e8545716c52f7933dc Mon Sep 17 00:00:00 2001 From: Alexey Shvayka Date: Wed, 19 Aug 2020 01:38:38 +0300 Subject: [PATCH] Rename & improve large target function "length" test --- ...ength-exceeds-int32.js => instance-length-exceeds-int32.js} | 3 +++ 1 file changed, 3 insertions(+) rename test/built-ins/Function/prototype/bind/{length-exceeds-int32.js => instance-length-exceeds-int32.js} (85%) diff --git a/test/built-ins/Function/prototype/bind/length-exceeds-int32.js b/test/built-ins/Function/prototype/bind/instance-length-exceeds-int32.js similarity index 85% rename from test/built-ins/Function/prototype/bind/length-exceeds-int32.js rename to test/built-ins/Function/prototype/bind/instance-length-exceeds-int32.js index 95fd81c0c4..744628a6eb 100644 --- a/test/built-ins/Function/prototype/bind/length-exceeds-int32.js +++ b/test/built-ins/Function/prototype/bind/instance-length-exceeds-int32.js @@ -24,3 +24,6 @@ function f(){} Object.defineProperty(f, "length", {value: 2147483648}); assert.sameValue(f.bind().length, 2147483648); + +Object.defineProperty(f, "length", {value: Number.MAX_SAFE_INTEGER}); +assert.sameValue(f.bind().length, Number.MAX_SAFE_INTEGER);