diff --git a/ext/webidl/00_webidl.js b/ext/webidl/00_webidl.js index ee358ff2f6a7a2..d148430d69ca5c 100644 --- a/ext/webidl/00_webidl.js +++ b/ext/webidl/00_webidl.js @@ -705,7 +705,7 @@ } const esDict = V; - const idlDict = ObjectAssign({}, defaultValues); + const idlDict = { __proto__: null, ...defaultValues }; // NOTE: fast path Null and Undefined. if ((V === undefined || V === null) && !hasRequiredKey) { @@ -729,13 +729,7 @@ }`; const converter = member.converter; const idlMemberValue = converter(esMemberValue, { ...opts, context }); - ObjectDefineProperty(idlDict, key, { - __proto__: null, - configurable: true, - enumerable: true, - value: idlMemberValue, - writable: true, - }); + idlDict[key] = idlMemberValue; } else if (member.required) { throw makeException( TypeError,