0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-03 09:31:22 -05:00

test: Manually truncate path string (#14407)

This commit is contained in:
Nayeem Rahman 2022-05-05 00:13:00 +01:00 committed by GitHub
parent d79a869ee6
commit 6a21fe745a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,6 +10,9 @@ self.addEventListener("message", (evt) => {
});
self.onerror = (...args) => {
// Take the last 100 characters so the filename doesn't get truncated
// depending on the dev's FS structure.
args = args.map((v) => typeof v == "string" ? v.slice(-100) : v);
console.log("Arguments from self.onerror:", args);
return true;
};