Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
Closes #265. Closes #266. Closes #267.
  • Loading branch information
domenic committed Feb 13, 2024
1 parent b06be97 commit 874e9a1
Show file tree
Hide file tree
Showing 4 changed files with 3,151 additions and 3,648 deletions.
4 changes: 2 additions & 2 deletions lib/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function resolveType(ctx, idlType, stack = []) {
const types = [];
for (let type of idlType.idlType) {
type = resolveType(ctx, type, stack);
idlType.nullable = idlType.nullable || type.nullable;
idlType.nullable ||= type.nullable;
// Only the outermost union is nullable
type.nullable = false;
if (type.union) {
Expand All @@ -74,7 +74,7 @@ function resolveType(ctx, idlType, stack = []) {
} else if (ctx.typedefs.has(idlType.idlType)) {
const out = deepClone(ctx.typedefs.get(idlType.idlType).resolve(stack));
resolvedMap.set(original, out);
out.nullable = out.nullable || idlType.nullable;
out.nullable ||= idlType.nullable;
out.extAttrs = deepClone(mergeExtAttrs(out.extAttrs, idlType.extAttrs));
if (out.union) {
for (const type of out.idlType) {
Expand Down
Loading

0 comments on commit 874e9a1

Please sign in to comment.