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'); |