| 1 |
// Copyright 2009 the Sputnik authors. All rights reserved. |
| 2 |
// This code is governed by the BSD license found in the LICENSE file. |
| 3 |
|
| 4 |
/*--- |
| 5 |
info: | |
| 6 |
Result of String conversion from string value is the input argument (no |
| 7 |
conversion) |
| 8 |
es5id: 9.8_A4_T2 |
| 9 |
description: Some strings convert to String by implicit transformation |
| 10 |
---*/ |
| 11 |
|
| 12 |
// CHECK#1 |
| 13 |
var x1 = "abc"; |
| 14 |
if (x1 + "" !== x1) { |
| 15 |
$ERROR('#1: "abc" + "" === "abc". Actual: ' + ("abc" + "")); |
| 16 |
} |
| 17 |
|
| 18 |
// CHECK#2 |
| 19 |
var x2 = "abc"; |
| 20 |
if (typeof x2 + "" !== typeof x2) { |
| 21 |
$ERROR('#2: typeof "abc" + "" === "string". Actual: ' + (typeof "abc" + "")); |
| 22 |
} |