Skip to content

Add Symbol.hasInstance support#550

Merged
Perryvw merged 2 commits intoTypeScriptToLua:masterfrom
ark120202:symbol-has-instance
May 2, 2019
Merged

Add Symbol.hasInstance support#550
Perryvw merged 2 commits intoTypeScriptToLua:masterfrom
ark120202:symbol-has-instance

Conversation

@ark120202
Copy link
Copy Markdown
Contributor

@ark120202 ark120202 commented May 2, 2019

Also made it throw when right-hand side is not a table.
Because of that null instanceof Object test started failing, so added a correct implementation for instanceof Object.

@ark120202 ark120202 marked this pull request as ready for review May 2, 2019 12:15
Copy link
Copy Markdown
Collaborator

@tomblind tomblind left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably add a InstanceOfFunction at some point too. But that doesn't need to be in this PR.

@Perryvw Perryvw merged commit 1d2cd13 into TypeScriptToLua:master May 2, 2019
@ark120202 ark120202 deleted the symbol-has-instance branch November 26, 2019 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants