michael@0: // Copyright 2009 the Sputnik authors. All rights reserved. michael@0: // This code is governed by the BSD license found in the LICENSE file. michael@0: michael@0: /** michael@0: * Result of String conversion from string value is the input argument (no conversion) michael@0: * michael@0: * @path ch09/9.8/S9.8_A4_T2.js michael@0: * @description Some strings convert to String by implicit transformation michael@0: */ michael@0: michael@0: // CHECK#1 michael@0: var x1 = "abc"; michael@0: if (x1 + "" !== x1) { michael@0: $ERROR('#1: "abc" + "" === "abc". Actual: ' + ("abc" + "")); michael@0: } michael@0: michael@0: // CHECK#2 michael@0: var x2 = "abc"; michael@0: if (typeof x2 + "" !== typeof x2) { michael@0: $ERROR('#2: typeof "abc" + "" === "string". Actual: ' + (typeof "abc" + "")); michael@0: } michael@0: