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:
parent
d79a869ee6
commit
6a21fe745a
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue