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 can't be used as constructor
8 Checking if creating the String.prototype.toLocaleUpperCase object
12 var __FACTORY = String.prototype.toLocaleUpperCase;
15 var __instance = new __FACTORY;
16 throw new Test262Error('#1: __FACTORY = String.prototype.toLocaleUpperCase; "__instance = new __FACTORY" lead to throwing exception');
18 if ((e instanceof TypeError) !== true) {
19 throw new Test262Error('#1.1: var __instance = new __FACTORY; Object has no construct lead a TypeError. Actual: ' + (e));