Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(387)

Unified Diff: test/mjsunit/regress/regress-299979.js

Issue 80623002: Array builtins proceed blithely on frozen arrays (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: a.unshift() needed special care. Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/mjsunit/regress/regress-2711.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
+})();
« no previous file with comments | « test/mjsunit/regress/regress-2711.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698