Skip to content

Commit 17fe306

Browse files
Update tester to have FILTER_CRATE set to null if undefined.
1 parent cfa6776 commit 17fe306

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/tools/rustdoc-js/tester.js

+2
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,8 @@ function runChecks(testFile, loaded, index) {
357357
var testFileContent = readFile(testFile) + 'exports.QUERY = QUERY;exports.EXPECTED = EXPECTED;';
358358
if (testFileContent.indexOf("FILTER_CRATE") !== -1) {
359359
testFileContent += "exports.FILTER_CRATE = FILTER_CRATE;";
360+
} else {
361+
testFileContent += "exports.FILTER_CRATE = null;";
360362
}
361363
var loadedFile = loadContent(testFileContent);
362364

0 commit comments

Comments
 (0)