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

Unified Diff: src/js/v8natives.js

Issue 1496503002: [runtime] [proxy] removing JSFunctionProxy and related code. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: doh Created 5 years 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: src/js/v8natives.js
diff --git a/src/js/v8natives.js b/src/js/v8natives.js
index 45e1ec2f3947117f8c71b4b4f9631902085e518f..ca5b34760f22193946b688d9b73decafd2094602 100644
--- a/src/js/v8natives.js
+++ b/src/js/v8natives.js
@@ -1542,9 +1542,7 @@ function NativeCodeFunctionSourceString(func) {
}
function FunctionSourceString(func) {
- while (%IsJSFunctionProxy(func)) {
- func = %GetCallTrap(func);
- }
+ //TODO(cbruni): resolve func to a non-proxy function for printing
Toon Verwaest 2015/12/03 11:48:42 The spec for Function.prototype.toString says only
Camillo Bruni 2015/12/03 12:18:26 removed.
if (!IS_FUNCTION(func)) {
throw MakeTypeError(kNotGeneric, 'Function.prototype.toString');

Powered by Google App Engine
This is Rietveld 408576698