aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node_modules/undici/lib/web/fileapi/progressevent.js
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--node_modules/undici/lib/web/fileapi/progressevent.js (renamed from node_modules/undici/lib/fileapi/progressevent.js)14
1 files changed, 7 insertions, 7 deletions
diff --git a/node_modules/undici/lib/fileapi/progressevent.js b/node_modules/undici/lib/web/fileapi/progressevent.js
index 778cf22..2d09d18 100644
--- a/node_modules/undici/lib/fileapi/progressevent.js
+++ b/node_modules/undici/lib/web/fileapi/progressevent.js
@@ -9,7 +9,7 @@ const kState = Symbol('ProgressEvent state')
*/
class ProgressEvent extends Event {
constructor (type, eventInitDict = {}) {
- type = webidl.converters.DOMString(type)
+ type = webidl.converters.DOMString(type, 'ProgressEvent constructor', 'type')
eventInitDict = webidl.converters.ProgressEventInit(eventInitDict ?? {})
super(type, eventInitDict)
@@ -44,32 +44,32 @@ webidl.converters.ProgressEventInit = webidl.dictionaryConverter([
{
key: 'lengthComputable',
converter: webidl.converters.boolean,
- defaultValue: false
+ defaultValue: () => false
},
{
key: 'loaded',
converter: webidl.converters['unsigned long long'],
- defaultValue: 0
+ defaultValue: () => 0
},
{
key: 'total',
converter: webidl.converters['unsigned long long'],
- defaultValue: 0
+ defaultValue: () => 0
},
{
key: 'bubbles',
converter: webidl.converters.boolean,
- defaultValue: false
+ defaultValue: () => false
},
{
key: 'cancelable',
converter: webidl.converters.boolean,
- defaultValue: false
+ defaultValue: () => false
},
{
key: 'composed',
converter: webidl.converters.boolean,
- defaultValue: false
+ defaultValue: () => false
}
])