Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index 9cd251b2858032c58a163ba774eb63d096d678f9..39e626b8d1dabaf714c216c1b0726ba2bd94f98b 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -7509,6 +7509,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. |