michael@0: // Copyright 2012 Mozilla Corporation. All rights reserved. michael@0: // This code is governed by the BSD license found in the LICENSE file. michael@0: michael@0: /** michael@0: * @description Tests that objects constructed by Intl.NumberFormat have the specified internal properties. michael@0: * @author Norbert Lindenberg michael@0: */ michael@0: michael@0: var obj = new Intl.NumberFormat(); michael@0: michael@0: var actualPrototype = Object.getPrototypeOf(obj); michael@0: if (actualPrototype !== Intl.NumberFormat.prototype) { michael@0: $ERROR("Prototype of object constructed by Intl.NumberFormat isn't Intl.NumberFormat.prototype; got " + actualPrototype); michael@0: } michael@0: michael@0: if (!Object.isExtensible(obj)) { michael@0: $ERROR("Object constructed by Intl.NumberFormat must be extensible."); michael@0: } michael@0: