DevTools: Fix argument hints for static constructor methods

The constructor name was not being passed correctly into the JSON,
which was causing static methods to be incorrectly parsed as
unique top level functions.

Bug: 913363
Change-Id: If0a94184cceef0c16b8755fe375aad3e2e48de0d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1501495
Reviewed-by: Erik Luo <luoe@chromium.org>
Commit-Queue: Joel Einbinder <einbinder@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#637852}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 02ae595073a7336412d333ff58c4b4b3f144c736
diff --git a/scripts/javascript_natives/index.js b/scripts/javascript_natives/index.js
index 349642b..2dd1ee7 100644
--- a/scripts/javascript_natives/index.js
+++ b/scripts/javascript_natives/index.js
@@ -178,7 +178,7 @@
     } else {
       for (const parent in methods[name]) {
         if (parent.endsWith('Constructor'))
-          functions.push({name, signatures: methods[name][parent], static: true, receiver: constructor});
+          functions.push({name, signatures: methods[name][parent], static: true, receiver: parent.substring(0, parent.length - 'Constructor'.length)});
         else
           functions.push({name, signatures: methods[name][parent], receiver: parent});
       }