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

Unified Diff: src/v8natives.js

Issue 1225793002: Revert of [es6] Bound function names (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 5 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
« no previous file with comments | « no previous file | test/mjsunit/function-bind-name.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/v8natives.js
diff --git a/src/v8natives.js b/src/v8natives.js
index b002be3461852c65df3962e01354134d75b35f12..0cc50786f96fb2f5205696d22ef48eee888322f4 100644
--- a/src/v8natives.js
+++ b/src/v8natives.js
@@ -21,7 +21,6 @@
var GlobalNumber = global.Number;
var GlobalObject = global.Object;
var InternalArray = utils.InternalArray;
-var SetFunctionName = utils.SetFunctionName;
var MathAbs;
var ProxyDelegateCallAndConstruct;
@@ -1765,10 +1764,6 @@
var result = %FunctionBindArguments(boundFunction, this,
this_arg, new_length);
- var name = this.name;
- var bound_name = IS_STRING(name) ? name : "";
- SetFunctionName(result, bound_name, "bound");
-
// We already have caller and arguments properties on functions,
// which are non-configurable. It therefore makes no sence to
// try to redefine these as defined by the spec. The spec says
« no previous file with comments | « no previous file | test/mjsunit/function-bind-name.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698