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_T11
8 Override toString function, toString throw exception, then call
9 toLocaleUpperCase() function for this object
13 toString: function() {
17 __obj.toLocaleUpperCase = String.prototype.toLocaleUpperCase;
18 //////////////////////////////////////////////////////////////////////////////
21 var x = __obj.toLocaleUpperCase();
22 throw new Test262Error('#1: "var x = __obj.toLocaleUpperCase()" lead to throwing exception');
24 if (e !== "intostr") {
25 throw new Test262Error('#1.1: Exception === "intostr". Actual: ' + e);
29 //////////////////////////////////////////////////////////////////////////////