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. |