michael@0: // Copyright 2012 Mozilla Corporation. All rights reserved. michael@0: // This code is governed by the license found in the LICENSE file. michael@0: michael@0: /** michael@0: * @description Tests that Intl.NumberFormat.prototype has the required attributes. michael@0: * @author Norbert Lindenberg michael@0: */ michael@0: michael@0: var desc = Object.getOwnPropertyDescriptor(Intl.NumberFormat, "prototype"); michael@0: if (desc === undefined) { michael@0: $ERROR("Intl.NumberFormat.prototype is not defined."); michael@0: } michael@0: if (desc.writable) { michael@0: $ERROR("Intl.NumberFormat.prototype must not be writable."); michael@0: } michael@0: if (desc.enumerable) { michael@0: $ERROR("Intl.NumberFormat.prototype must not be enumerable."); michael@0: } michael@0: if (desc.configurable) { michael@0: $ERROR("Intl.NumberFormat.prototype must not be configurable."); michael@0: } michael@0: