Glad to hear you found your mistake; for anyone else having a similar problem and finding this through a search or whatever: they were probably using . instead of ->
Specifically, for v8::Local<v8::Value> foo, one has to do foo->TypeOf() to access v8::Value::TypeOf, otherwise it's trying to access v8::Local::TypeOf. On Thu, Jun 4, 2020 at 5:21 PM Al Mo <[email protected]> wrote: > Please ignore, I found my mistake, > > Best day to all! > Alex. > > On Thu, Jun 4, 2020 at 10:15 AM Al Mo <[email protected]> wrote: > >> Forgot link, for reference: >> https://v8docs.nodesource.com/node-14.1/dc/d0a/classv8_1_1_value.html#af60030f7df23262cff7b59092725ed57 >> >> On Thu, Jun 4, 2020 at 10:13 AM Al Mo <[email protected]> wrote: >> >>> Hi, >>> >>> On the documentation (the most recent one) there is a function *TypeOf* >>> that can be called on *Value*s which returns a string with a similar >>> output of calling `typeof object` in JS (I presume?) ... >>> >>> However, when I try to use it on a v8::Local<v8::Value>, I get the >>> following error at compile time: >>> >>> main.cc:11:11: error: ‘class v8::Local<v8::Value>’ has no member named ‘ >>> TypeOf’ >>> >>> Is this not implemented yet? >>> >>> Alex. >>> >>> -- >>> -- >>> v8-dev mailing list >>> [email protected] >>> http://groups.google.com/group/v8-dev >>> --- >>> You received this message because you are subscribed to the Google >>> Groups "v8-dev" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/v8-dev/d3c5da31-30a9-4c96-a390-b28467622aeb%40googlegroups.com >>> <https://groups.google.com/d/msgid/v8-dev/d3c5da31-30a9-4c96-a390-b28467622aeb%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- > -- > v8-dev mailing list > [email protected] > http://groups.google.com/group/v8-dev > --- > You received this message because you are subscribed to the Google Groups > "v8-dev" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/v8-dev/CABK7q5dW57egQooavj9WB8V0%3Dm%2B6C7i%2BUSSOdGhcLiVLwLP38Q%40mail.gmail.com > <https://groups.google.com/d/msgid/v8-dev/CABK7q5dW57egQooavj9WB8V0%3Dm%2B6C7i%2BUSSOdGhcLiVLwLP38Q%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev --- You received this message because you are subscribed to the Google Groups "v8-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/v8-dev/CAGRskv-xSpUGZJUyc-K0EVh7BuqP9OhJ0cOCB8XaDdwVzT70Sg%40mail.gmail.com.
