perf(webidl): optimize createDictionaryConverter()
On a benchmark constructing Responses with headers this shaves off 25%
NumberMAX_SAFE_INTEGER,
// deno-lint-ignore camelcase
NumberMIN_SAFE_INTEGER,
+ ObjectAssign,
ObjectCreate,
ObjectDefineProperties,
ObjectDefineProperty,
}
const esDict = V;
- const idlDict = { ...defaultValues };
+ const idlDict = ObjectAssign({}, defaultValues);
// NOTE: fast path Null and Undefined.
if ((V === undefined || V === null) && !hasRequiredKey) {
