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: * Assignment to string literal calls String constructor michael@0: * michael@0: * @path ch08/8.4/S8.4_A12.js michael@0: * @description Check constructor of simple assigned variable michael@0: */ michael@0: michael@0: ////////////////////////////////////////////////////////////////////////////// michael@0: //CHECK#1 michael@0: var str = "rock'n'roll"; michael@0: if (str.constructor !== String){ michael@0: $ERROR('#1: var str = "rock\'n\'roll"; str.constructor === String. Actual: ' + (str.constructor)); michael@0: } michael@0: // michael@0: ////////////////////////////////////////////////////////////////////////////// michael@0: