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

Unified Diff: test/mjsunit/es6/rest-params.js

Issue 2430383004: Remove the 'caller' property from the strict-mode arguments map (Closed)
Patch Set: delete an obsolete test Created 4 years, 2 months 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
Index: test/mjsunit/es6/rest-params.js
diff --git a/test/mjsunit/es6/rest-params.js b/test/mjsunit/es6/rest-params.js
index 9afe9b409e62af33f1ab2545c2dbffa81a149c5d..2f122daffd5eb966260013840f91d2b1baf02912 100644
--- a/test/mjsunit/es6/rest-params.js
+++ b/test/mjsunit/es6/rest-params.js
@@ -136,11 +136,9 @@ var O = {
(function testUnmappedArguments() {
// Strict/Unmapped arguments should always be used for functions with rest
// parameters
- assertThrows(function(...rest) { return arguments.caller; }, TypeError);
assertThrows(function(...rest) { return arguments.callee; }, TypeError);
// TODO(caitp): figure out why this doesn't throw sometimes, even though the
// getter always does =)
- // assertThrows(function(...rest) { arguments.caller = 1; }, TypeError);
// assertThrows(function(...rest) { arguments.callee = 1; }, TypeError);
})();

Powered by Google App Engine
This is Rietveld 408576698