Skip to content

Decide what to do about @objc functions nil return #143

Description

@cmsj

JavaScriptCore bridges Swift's nil to JavaScript's undefined. We advertise a lot of our methods as returning something or null.

In JavaScript, null == undefined is True, but null === undefined is False.

We either need to be ok with forcing users to use loose equality tests on our return types, or rewrite all of our methods that might return nil to return JSValue() so the nil cases can return JSValue(nullIn: context).

Metadata

Metadata

Assignees

Labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions