alias Duktape::JSPrimitive
Overview
Code evaluated using a Duktape::Runtime
instance will return a value
that depends on the last evaluated javascript expression.
We try our best to translate a complex object on the Duktape stack to a usable Crystal value.
Javascript objects will become Crystal hashes of type Hash(String, Duktape::JSPrimitive), which is itself of type Duktape::JSPrimtive.
Javascript arrays will become Crystal arrays of type Array(Duktape::JSPrimitive), which is also a Duktape::JSPrimitive instance.
Alias Definition
Array(Duktape::JSPrimitive) | Bool | Float64 | Hash(String, Duktape::JSPrimitive) | String | Nil