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

Unified Diff: test/mjsunit/function-caller.js

Issue 233083003: Try to switch Array builtins into strict mode. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 8 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/function-caller.js
diff --git a/test/mjsunit/function-caller.js b/test/mjsunit/function-caller.js
index bc01750f9351d48f6b7da633397ef38bb714c5fe..a2c54bbfd391d6170b3e93d025ac2964d7bc5f85 100644
--- a/test/mjsunit/function-caller.js
+++ b/test/mjsunit/function-caller.js
@@ -46,10 +46,10 @@ f(null);
// Check called from eval.
eval('f(null)');
-// Check called from builtin functions. Only show the initially called
-// (publicly exposed) builtin function, not it's internal helper functions.
-[Array.prototype.sort, Array.prototype.sort].sort(f);
+// Check called from strict builtin functions.
+[null, null].sort(f);
+// Check called from sloppy builtin functions.
"abel".replace(/b/g, function h() {
assertEquals(String.prototype.replace, h.caller);
});

Powered by Google App Engine
This is Rietveld 408576698