Fixes module-resource-name.js on win32. (#4481)

JerryScript-DCO-1.0-Signed-off-by: Yonggang Luo luoyonggang@gmail.com
This commit is contained in:
Yonggang Luo
2021-01-18 01:32:48 -08:00
committed by GitHub
parent ccf511a544
commit f894a8fad5
+4 -4
View File
@@ -14,14 +14,14 @@
import { getName, getNamePromise } from "./module-resource-name-export.mjs"
assert(getName().endsWith("/module-resource-name-export.mjs") === true);
assert(getName().endsWith("module-resource-name-export.mjs"));
var collector = {};
getNamePromise(collector).then(() => { collector["end"] = resourceName(); });
function __checkAsync() {
assert(collector["start"].endsWith("/module-resource-name-export.mjs") === true);
assert(collector["middle"].endsWith("/module-resource-name-export.mjs") === true);
assert(collector["end"].endsWith("/module-resource-name.js") === true);
assert(collector["start"].endsWith("module-resource-name-export.mjs"));
assert(collector["middle"].endsWith("module-resource-name-export.mjs"));
assert(collector["end"].endsWith("module-resource-name.js"));
assert(Object.keys(collector).length === 3);
}