Bug 1914115 - Ensure UPLOAD_PATH is set before using it for profile logs r=perftest...
[gecko.git] / js / src / tests / test262 / built-ins / String / prototype / concat / S15.5.4.6_A1_T7.js
blobb3ba0109ad2f8f43949d16ed58573f8491b1616a
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_T7
7 description: >
8     Call concat([,[...]]) function with undefined argument of string
9     object
10 ---*/
12 //////////////////////////////////////////////////////////////////////////////
13 //CHECK#1
14 //since ToString(undefined) evaluates to "undefined" concat(undefined) evaluates to concat("undefined")
15 if (String("lego").concat(undefined) !== "legoundefined") {
16   throw new Test262Error('#1: String("lego").concat(undefined) === "legoundefined". Actual: ' + String("lego").concat(undefined));
19 //////////////////////////////////////////////////////////////////////////////
21 reportCompare(0, 0);