diff options
author | Benjamin Gruenbaum <benjamingr@gmail.com> | 2020-11-14 14:10:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-14 13:10:23 +0100 |
commit | 3d65e57d7c48f5dd1307f83771fe5574d914cea3 (patch) | |
tree | 80396bd252f01c9794a226785582c0408c78549f /cli/rt/40_permissions.js | |
parent | 3a0ebff641c5b5d8d3c87b67c3e6f5b4f004478f (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_permissions.js')
-rw-r--r-- | cli/rt/40_permissions.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/rt/40_permissions.js b/cli/rt/40_permissions.js index 982e4c842..50d471b6a 100644 --- a/cli/rt/40_permissions.js +++ b/cli/rt/40_permissions.js @@ -17,7 +17,7 @@ } class PermissionStatus { - constructor(state, key) { + constructor(state = null, key = null) { if (key != illegalConstructorKey) { throw new TypeError("Illegal constructor."); } |