Try adding @ts-ignore/etc. to resolve Windows/Node 14-only break when ci script invokes build-demo.

This commit is contained in:
David Anson 2021-01-06 20:20:18 -08:00
parent d5b1122ef1
commit 01d216ff6a
3 changed files with 8 additions and 2 deletions

View file

@ -3304,11 +3304,13 @@ module.exports = {
if (matchLength === effectiveEmphasisLength) {
// Ending an existing run, report any pending error
if (pendingError) {
// @ts-ignore
addErrorContext.apply(void 0, pendingError);
pendingError = null;
}
var error = handleRunEnd(line, lineIndex, effectiveEmphasisLength, match, matchIndex);
if (error) {
// @ts-ignore
addErrorContext.apply(void 0, error);
}
// Reset
@ -3927,7 +3929,8 @@ var rules = [
];
rules.forEach(function (rule) {
var name = rule.names[0].toLowerCase();
rule.information =
// eslint-disable-next-line dot-notation
rule["information"] =
new URL(homepage + "/blob/v" + version + "/doc/Rules.md#" + name);
});
module.exports = rules;

View file

@ -106,12 +106,14 @@ module.exports = {
if (matchLength === effectiveEmphasisLength) {
// Ending an existing run, report any pending error
if (pendingError) {
// @ts-ignore
addErrorContext(...pendingError);
pendingError = null;
}
const error = handleRunEnd(
line, lineIndex, effectiveEmphasisLength, match, matchIndex);
if (error) {
// @ts-ignore
addErrorContext(...error);
}
// Reset

View file

@ -54,7 +54,8 @@ const rules = [
];
rules.forEach((rule) => {
const name = rule.names[0].toLowerCase();
rule.information =
// eslint-disable-next-line dot-notation
rule["information"] =
new URL(`${homepage}/blob/v${version}/doc/Rules.md#${name}`);
});
module.exports = rules;