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

Unified Diff: src/objects.h

Issue 1626423003: Support computed properties for ES2015 Function.name (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Mostly working Created 4 years, 11 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: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index 66c695715a1d51a0fe262ab8c5482f023527e178..c869c7c5f05659dcf3cdc80b15b5cfe6959f2385 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -7496,6 +7496,12 @@ class JSFunction: public JSObject {
// debug name.
static Handle<String> GetName(Handle<JSFunction> function);
+ // ES6 section 9.2.11 SetFunctionName
+ // Because of the way this abstract operation is used in the spec,
+ // it should never fail.
+ static void SetName(Handle<JSFunction> function, Handle<Name> name,
+ Handle<String> prefix);
+
// The function's displayName if it is set, otherwise name if it is
// configured, otherwise shared function info
// debug name.

Powered by Google App Engine
This is Rietveld 408576698