这是indexloc提供的服务,不要输入任何密码
Skip to content

Consider making some optional members also nullable #1400

@kainino0x

Description

@kainino0x

In https://crbug.com/1153201 a user was surprised to find that resolveTarget: null was invalid even though omitting it (or specifying resolveTarget: undefined) is valid.

As a small ergonomic improvement we could consider making some optional members also nullable to make that work.
There may be a tiny bindings performance hit to doing this.

This is quite minor and would be a non-breaking change, so it is definitely post-MVP.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions