Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add back Record.isRecord #124

Merged
merged 1 commit into from
May 28, 2020
Merged

Add back Record.isRecord #124

merged 1 commit into from
May 28, 2020

Conversation

littledan
Copy link
Member

This was included before, and turns out to be needed in the context of #71

This was included before, and turns out to be needed in the context of #71
@littledan
Copy link
Member Author

cc @ljharb

@Jack-Works
Copy link
Member

Why not just typeof

@rricard
Copy link
Member

rricard commented May 28, 2020

typeof will detect the primitive type (record, tuple) but not the primitive type boxed into their boxing objects (Record, Tuple). It is an edge case but it could be useful to detect it.

@ljharb
Copy link
Member

ljharb commented May 28, 2020

More specifically, it’s an axiom for every object value (except Error, for legacy reasons), including boxed primitives, that there must be a cross-realm mechanism to distinguish it.

@rickbutton rickbutton merged commit e3a2102 into master May 28, 2020
@rricard rricard deleted the littledan-patch-2 branch May 28, 2020 15:50
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.

5 participants