c++ - How to return different types in v8 -


i have not been able find general list returning different types in v8. instance return number in v8 do

handle<value> some_function(const v8::arguments& args) {        handlescope scope;      int x;     return scope.close(number::new(x));  } 

how v8::number, v8::boolean, v8::string , v8::object?

there 3 kinds of primitive type in v8. boolean, number(integer) , string. however, v8 support object type value such array, date, function, , on. v8 api references helpful you. http://izs.me/v8-docs/classv8_1_1data.html


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -