summaryrefslogtreecommitdiff
path: root/ext/web/15_performance.js
diff options
context:
space:
mode:
authorGeert-Jan Zwiers <geertjanzwiers@protonmail.com>2022-05-13 18:36:00 +0200
committerGitHub <noreply@github.com>2022-05-13 18:36:00 +0200
commit0568be863ba5e02bdbd3889f66281fae356f7263 (patch)
tree27e19ef52beea9fbd0a4c281829be59660718de9 /ext/web/15_performance.js
parent939a070c8cbe77626e07a01646c324b2ae5ac740 (diff)
feat(ext/web): add performance.toJSON (#14548)
Diffstat (limited to 'ext/web/15_performance.js')
-rw-r--r--ext/web/15_performance.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/web/15_performance.js b/ext/web/15_performance.js
index d1437c8d7..10e014008 100644
--- a/ext/web/15_performance.js
+++ b/ext/web/15_performance.js
@@ -556,7 +556,9 @@
toJSON() {
webidl.assertBranded(this, PerformancePrototype);
- return {};
+ return {
+ timeOrigin: this.timeOrigin,
+ };
}
[customInspect](inspect) {