mirror of
https://github.com/rubyjs/therubyracer
synced 2023-03-27 23:21:42 -04:00
68c968e109
std::string, and added pushUnknown() to conversion destination classes
18 lines
474 B
Text
18 lines
474 B
Text
Short list of types that a receiver should handle:
|
|
|
|
type expected method
|
|
-------------------------------
|
|
<null> pushNull
|
|
boolean pushBool
|
|
int64 pushInt (overloaded on 64-bit int)
|
|
double pushDouble
|
|
const std::string& pushString
|
|
??? pushUndefined
|
|
|
|
int32 pushInt (overloaded on 32-bit int)
|
|
|
|
for lack of any better ideas have these functions return true on
|
|
success and false on error
|
|
|
|
--
|
|
should add more later.
|