summaryrefslogtreecommitdiff
path: root/cli/rt/40_performance.js
diff options
context:
space:
mode:
authorBenjamin Gruenbaum <benjamingr@gmail.com>2020-11-14 14:10:23 +0200
committerGitHub <noreply@github.com>2020-11-14 13:10:23 +0100
commit3d65e57d7c48f5dd1307f83771fe5574d914cea3 (patch)
tree80396bd252f01c9794a226785582c0408c78549f /cli/rt/40_performance.js
parent3a0ebff641c5b5d8d3c87b67c3e6f5b4f004478f (diff)
fix: fix various global objects constructor length (#8373)
This commit changes various Web APIs constructors to match their signature in the browser.
Diffstat (limited to 'cli/rt/40_performance.js')
-rw-r--r--cli/rt/40_performance.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/cli/rt/40_performance.js b/cli/rt/40_performance.js
index 573fc8051..3d8be6031 100644
--- a/cli/rt/40_performance.js
+++ b/cli/rt/40_performance.js
@@ -70,11 +70,11 @@
}
constructor(
- name,
- entryType,
- startTime,
- duration,
- key,
+ name = null,
+ entryType = null,
+ startTime = null,
+ duration = null,
+ key = null,
) {
if (key != illegalConstructorKey) {
throw new TypeError("Illegal constructor.");
@@ -185,7 +185,7 @@
}
class Performance {
- constructor(key) {
+ constructor(key = null) {
if (key != illegalConstructorKey) {
throw new TypeError("Illegal constructor.");
}