-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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
Exposing more isXyz helpers through node_util.cc. #7196
Comments
I'm in favor of this, but I know others are not. If you don't mind using a native addon, there is https://github.com/evanlucas/v8is. |
I had attempted to add |
Cool. I recently adopted these in Lodash too. |
Ok. Just keep in mind that we tend to treat things on |
Yep, yep. Usage is all guarded, checked, & yada yada. Is there a way to iterate over the V8 Value methods and export the |
that would be a bit of a hard sell in light of this. There's an ongoing discussion about whether any of the |
I think that fits fine with this. I'm asking to expand the node_util bindings not the public |
I think expanding the bindings layer for things that aren't used in core will be an even harder sell. That said, I still think we should expose the type checking functions that would otherwise require a native addon. |
This issue has been inactive for sufficiently long that it seems like perhaps it should be closed. Feel free to re-open (or leave a comment requesting that it be re-opened) if you disagree. I'm just tidying up and not acting on a super-strong opinion or anything like that. |
@jasnell Is there anything moving on utils/built-ins on the TC39 front? |
It looks like https://github.com/jasnell/proposal-istypes is going to support type masquerading (see jasnell/proposal-istypes#30). For that reason, I'd like to see more of these bindings made available. |
Yes, we're making progress on the proposal... keep in mind that it's still Stage-0 but the goal is get it to Stage-1 or even Stage-2 by around September. Won't be too difficult for us to polyfill either. |
For me personally, the whole point is to get a data type that cannot be faked anywhere without installing a compiled module. |
I dig these utils for their perf wins. I'd be OK if values with |
I noticed that node/src/node_util.cc has
Which is great!
Is there interest in filling it out with
IsWeakMap
,IsWeakSet
,IsProxy
,IsSharedArrayBuffer
,or others?
The text was updated successfully, but these errors were encountered: