1 // Copyright 2009 the Sputnik authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
5 info: String.prototype.toLocaleUpperCase()
6 es5id: 15.5.4.19_A1_T12
8 Override toString and valueOf functions, valueOf throw exception,
9 then call toLocaleUpperCase() function for this object
13 toString: function() {
20 __obj.toLocaleUpperCase = String.prototype.toLocaleUpperCase;
21 //////////////////////////////////////////////////////////////////////////////
24 var x = __obj.toLocaleUpperCase();
25 throw new Test262Error('#1: "var x = __obj.toLocaleUpperCase()" lead to throwing exception');
27 if (e !== "intostr") {
28 throw new Test262Error('#1.1: Exception === "intostr". Actual: ' + e);
32 //////////////////////////////////////////////////////////////////////////////