blob: 464d702fb380d1fe525953ef47d6f51704a45922 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: Object.prototype.toLocaleString can't be used as a constructor
es5id: 15.2.4.3_A7
description: Checking if creating "new Object.prototype.toLocaleString" fails
includes:
- $PRINT.js
- $FAIL.js
---*/
var FACTORY = Object.prototype.toLocaleString;
try {
instance = new FACTORY;
$FAIL('#1: Object.prototype.toLocaleString can\'t be used as a constructor');
} catch (e) {
$PRINT(e);
}
|