| 1 |
// Copyright 2012 Mozilla Corporation. All rights reserved. |
| 2 |
// This code is governed by the BSD license found in the LICENSE file. |
| 3 |
|
| 4 |
/*--- |
| 5 |
es5id: 11.4_a |
| 6 |
description: > |
| 7 |
Tests that Intl.NumberFormat instances have the specified |
| 8 |
properties. |
| 9 |
author: Norbert Lindenberg |
| 10 |
---*/ |
| 11 |
|
| 12 |
var obj = new Intl.NumberFormat(); |
| 13 |
|
| 14 |
var toStringValue = Object.prototype.toString.call(obj); |
| 15 |
assert.sameValue(toStringValue, "[object Object]", "Intl.NumberFormat instance produces wrong [[Class]] - toString returns " + toStringValue + "."); |