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

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

Issue 2430383004: Remove the 'caller' property from the strict-mode arguments map (Closed)
Patch Set: fix restored test and other Created 4 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
Index: test/mjsunit/regress/regress-1387.js
diff --git a/test/mjsunit/regress/regress-1387.js b/test/mjsunit/regress/regress-1387.js
index d171d381ad27f2ac101105dbe0419211adf10b46..0d58eab4994956553a8c5301a1565aebe9f7cf05 100644
--- a/test/mjsunit/regress/regress-1387.js
+++ b/test/mjsunit/regress/regress-1387.js
@@ -26,13 +26,13 @@
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// Tests that we always return the same type error function when trying to
-// access strict mode caller and callee.
+// access or set strict mode callee.
function foo() {
'use strict';
return arguments;
}
-var get1 = Object.getOwnPropertyDescriptor(foo(), "caller").get;
-var get2 = Object.getOwnPropertyDescriptor(foo(), "callee").get;
-assertEquals(get1, get2);
+var get = Object.getOwnPropertyDescriptor(foo(), "callee").get;
+var set = Object.getOwnPropertyDescriptor(foo(), "callee").set;
+assertEquals(get, set);

Powered by Google App Engine
This is Rietveld 408576698