about summary refs log tree commit diff
path: root/src/tools/rustdoc-js/tester.js
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2021-05-14 16:07:09 +0200
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2021-05-15 13:09:55 +0200
commit18b7c0a00e6c248bc1b83263db5be0e1d0bf82d1 (patch)
tree192ccb0e6561d36d805afe19e2491a5108034d2e /src/tools/rustdoc-js/tester.js
parentccabd4eedf982e3fcf7f730efc8ff1c7b0ee88f7 (diff)
downloadrust-18b7c0a00e6c248bc1b83263db5be0e1d0bf82d1.tar.gz
rust-18b7c0a00e6c248bc1b83263db5be0e1d0bf82d1.zip
Update rustdoc-js tools
Diffstat (limited to 'src/tools/rustdoc-js/tester.js')
-rw-r--r--src/tools/rustdoc-js/tester.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tools/rustdoc-js/tester.js b/src/tools/rustdoc-js/tester.js
index e583bd225a9..86b16f8b0e6 100644
--- a/src/tools/rustdoc-js/tester.js
+++ b/src/tools/rustdoc-js/tester.js
@@ -267,9 +267,10 @@ function loadSearchJsAndIndex(searchJs, searchIndex, storageJs, crate) {
                            "handleAliases", "getQuery", "buildIndex", "execQuery", "execSearch",
                            "removeEmptyStringsFromArray"];
 
+    const functions = ["hasOwnPropertyRustdoc", "onEach"];
     ALIASES = {};
     finalJS += 'window = { "currentCrate": "' + crate + '", rootPath: "../" };\n';
-    finalJS += loadThings(["hasOwnProperty", "onEach"], 'function', extractFunction, storageJs);
+    finalJS += loadThings(functions, 'function', extractFunction, storageJs);
     finalJS += loadThings(arraysToLoad, 'array', extractArrayVariable, searchJs);
     finalJS += loadThings(variablesToLoad, 'variable', extractVariable, searchJs);
     finalJS += loadThings(functionsToLoad, 'function', extractFunction, searchJs);