| 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: 10.4_a |
| 6 |
description: Tests that Intl.Collator instances have the specified properties. |
| 7 |
author: Norbert Lindenberg |
| 8 |
---*/ |
| 9 |
|
| 10 |
var obj = new Intl.Collator(); |
| 11 |
|
| 12 |
var toStringValue = Object.prototype.toString.call(obj); |
| 13 |
assert.sameValue(toStringValue, "[object Object]", "Intl.Collator instance produces wrong [[Class]] - toString returns " + toStringValue + "."); |