From 0a6280786ef678e637ff3cf1be4a9e90e618eb53 Mon Sep 17 00:00:00 2001 From: Yuichiro Yamashita Date: Sun, 4 Sep 2022 00:23:16 +0900 Subject: [PATCH] use backslash --- scripts/globals-extractor.mjs | 4 ++-- src/compiler/utils/globals.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/globals-extractor.mjs b/scripts/globals-extractor.mjs index cabcba3e76..1c4274a024 100644 --- a/scripts/globals-extractor.mjs +++ b/scripts/globals-extractor.mjs @@ -62,7 +62,7 @@ const get_functions = async (name) => { const build_output = (functions) => { const sorted = Array.from(new Set(functions.sort())); - return ` + return `\ /** ---------------------------------------------------------------------- This file is automatically generated by \`scripts/globals-extractor.mjs\`. Generated At: ${new Date().toISOString()} @@ -71,7 +71,7 @@ Generated At: ${new Date().toISOString()} export default new Set([ ${sorted.map((i) => `\t'${i}'`).join(',\n')} ]); -`.substring(1); +`; }; const get_exists_globals = () => { diff --git a/src/compiler/utils/globals.ts b/src/compiler/utils/globals.ts index 657006d574..ee43af3b91 100644 --- a/src/compiler/utils/globals.ts +++ b/src/compiler/utils/globals.ts @@ -1,6 +1,6 @@ /** ---------------------------------------------------------------------- This file is automatically generated by `scripts/globals-extractor.mjs`. -Generated At: 2022-09-03T15:10:02.144Z +Generated At: 2022-09-03T15:22:37.415Z ---------------------------------------------------------------------- */ export default new Set([