Backed out changeset 48baafc34055 (bug 1789166) for causing mochitests failures....
[gecko.git] / js / src / tests / test262 / built-ins / String / prototype / concat / S15.5.4.6_A1_T8.js
blob7eae3fd4400006f0f269835e3ff84faf47bb72db
1 // Copyright 2009 the Sputnik authors.  All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
4 /*---
5 info: String.prototype.concat([,[...]])
6 es5id: 15.5.4.6_A1_T8
7 description: >
8     Call concat([,[...]]) function with void 0 argument of string
9     object
10 ---*/
12 //////////////////////////////////////////////////////////////////////////////
13 //CHECK#1
14 //since ToString(void 0) evaluates to "undefined" concat(void 0) evaluates to concat("undefined")
15 if (String(42).concat(void 0) !== "42undefined") {
16   throw new Test262Error('#1: String(42).concat(void 0) === "42undefined". Actual: ' + String(42).concat(void 0));
19 //////////////////////////////////////////////////////////////////////////////
21 reportCompare(0, 0);