denoland / denoland/deploy_feedback

performance.timeOrigin = undefined on Deno Deploy

Open
#696 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
79
Forks
5
PR merge metrics
No merged PRs in 30d

Description

When i deploy my code on Deno Deploy, I have this error in the logs and it says "ERROR: RangeError: Invalid time value at Date.toISOString ()". It happens because of this line in my code

```ts
const start = performance.timeOrigin; //undefined
```

I've tried to use `Date.now()` instead of `performance.timeOrigin`, and it worked.
*Btw `performance.now()` working as well.

Does someone know what is the possible solution? Deno on latest version.

It deployes successfully, but on Deno logs this error.

It happens here:

```ts
const start = performance.timeOrigin; //undefined
const now = performance.now();

const iso = new Date(start + now).toISOString(); //error
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.