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_T1.js michael@0: * @description Some strings convert to String with explicit transformation michael@0: */ michael@0: michael@0: // CHECK#1 michael@0: var x1 = "abc"; michael@0: if (String(x1) !== x1) { michael@0: $ERROR('#1: String("abc") === "abc". Actual: ' + (String("abc"))); michael@0: } michael@0: michael@0: // CHECK#2 michael@0: var x2 = "abc"; michael@0: if (typeof String(x2) !== typeof x2) { michael@0: $ERROR('#2: typeof String("abc") === "string". Actual: ' + (typeof String("abc"))); michael@0: } michael@0: