diff options
Diffstat (limited to 'cli/rt')
-rw-r--r-- | cli/rt/40_performance.js | 12 | ||||
-rw-r--r-- | cli/rt/40_permissions.js | 2 |
2 files changed, 7 insertions, 7 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."); } 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."); } |