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

Unified Diff: test/mjsunit/runtime-gen/tomethod.js

Issue 475423003: Implement Function.prototype.toMethod. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: CR feedback Created 6 years, 4 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/runtime-gen/tomethod.js
diff --git a/test/mjsunit/runtime-gen/functiongetscript.js b/test/mjsunit/runtime-gen/tomethod.js
similarity index 77%
copy from test/mjsunit/runtime-gen/functiongetscript.js
copy to test/mjsunit/runtime-gen/tomethod.js
index bd4364447ec373a47478551bf6306384f9e937b0..0d4eb5553d5fe5dcf3567e75d7cbcd459b66882a 100644
--- a/test/mjsunit/runtime-gen/functiongetscript.js
+++ b/test/mjsunit/runtime-gen/tomethod.js
@@ -2,4 +2,5 @@
// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
// Flags: --allow-natives-syntax --harmony --harmony-proxies
var _fun = function() {};
-%FunctionGetScript(_fun);
+var _home_object = new Object();
+%ToMethod(_fun, _home_object);

Powered by Google App Engine
This is Rietveld 408576698