diff options
Diffstat (limited to 'js/src/tests/test262/built-ins/Array/prototype/findLast/call-with-boolean.js')
-rw-r--r-- | js/src/tests/test262/built-ins/Array/prototype/findLast/call-with-boolean.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/js/src/tests/test262/built-ins/Array/prototype/findLast/call-with-boolean.js b/js/src/tests/test262/built-ins/Array/prototype/findLast/call-with-boolean.js new file mode 100644 index 0000000000..7f7a75ac7c --- /dev/null +++ b/js/src/tests/test262/built-ins/Array/prototype/findLast/call-with-boolean.js @@ -0,0 +1,21 @@ +// Copyright (C) 2021 Microsoft. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: sec-array.prototype.findlast +description: Array.prototype.findLast applied to boolean primitive. +features: [array-find-from-last] +---*/ + +assert.sameValue( + Array.prototype.findLast.call(true, () => {}), + undefined, + 'Array.prototype.findLast.call(true, () => {}) must return undefined' +); +assert.sameValue( + Array.prototype.findLast.call(false, () => {}), + undefined, + 'Array.prototype.findLast.call(false, () => {}) must return undefined' +); + +reportCompare(0, 0); |