michael@0: // Copyright 2013 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 constructing a NumberFormat doesn't create or modify michael@0: * unwanted properties on the RegExp constructor. michael@0: * @author Norbert Lindenberg michael@0: */ michael@0: michael@0: $INCLUDE("testIntl.js"); michael@0: michael@0: testForUnwantedRegExpChanges(function () { michael@0: new Intl.NumberFormat("de-DE-u-nu-latn"); michael@0: }); michael@0: michael@0: testForUnwantedRegExpChanges(function () { michael@0: new Intl.NumberFormat("de-DE-u-nu-latn", {style: "currency", currency: "EUR"}); michael@0: });