Index: test/mjsunit/strict-mode.js |
diff --git a/test/mjsunit/strict-mode.js b/test/mjsunit/strict-mode.js |
index 69be19c28a708a8ce5894402bffe249592355952..20641625ab2a62d420c67b9c3fda6945d33271fb 100644 |
--- a/test/mjsunit/strict-mode.js |
+++ b/test/mjsunit/strict-mode.js |
@@ -957,3 +957,22 @@ repeat(10, function() { testAssignToUndefined(false); }); |
assertThrows(function() { str_obj.length = 1; }, TypeError); |
assertThrows(function() { str_cat.length = 1; }, TypeError); |
})(); |
+ |
+ |
+(function TestArgumentsAliasing() { |
+ function strict(a, b) { |
+ "use strict"; |
+ a = "c"; |
+ b = "d"; |
+ return [a, b, arguments[0], arguments[1]]; |
+ } |
+ |
+ function nonstrict(a, b) { |
+ a = "c"; |
+ b = "d"; |
+ return [a, b, arguments[0], arguments[1]]; |
+ } |
+ |
+ assertEquals(["c", "d", "a", "b"], strict("a", "b")); |
+ assertEquals(["c", "d", "c", "d"], nonstrict("a", "b")); |
+})(); |