Index: test/mjsunit/regress/regress-299979.js |
diff --git a/test/intl/collator/wellformed-unsupported-locale.js b/test/mjsunit/regress/regress-299979.js |
similarity index 89% |
copy from test/intl/collator/wellformed-unsupported-locale.js |
copy to test/mjsunit/regress/regress-299979.js |
index 3963d47a61ff85b1cc491a904533e955110d972d..0afbcb35717f4c60f62d8cd8442ab164ec93246b 100644 |
--- a/test/intl/collator/wellformed-unsupported-locale.js |
+++ b/test/mjsunit/regress/regress-299979.js |
@@ -25,8 +25,10 @@ |
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
-// Passing a well formed but unsupported locale falls back to default. |
-var collator = Intl.Collator(['xx']); |
- |
-assertEquals(collator.resolvedOptions().locale, %GetDefaultICULocale()); |
+(function(){ |
+ "use strict"; |
+ var list = Object.freeze([1, 2, 3]); |
+ assertThrows(function() { list.unshift(4); }, TypeError); |
+ assertThrows(function() { list.shift(); }, TypeError); |
+})(); |