summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Array/prototype/reduce/15.4.4.21-7-11.js
blob: 4e2a9f749560edf1cd4cb665807f38e0231865ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Copyright (c) 2012 Ecma International.  All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
esid: sec-array.prototype.reduce
description: Array.prototype.reduce - 'initialValue' is not present
---*/

var str = "initialValue is not present";

assert.sameValue([str].reduce(function() {}), str, '[str].reduce(function () { })');

reportCompare(0, 0);