Value.createJsVal

JSCValue * createJsVal(T)(JSCContext * ctx, T val)

Template to create a JSCValue from a given D value

Parameters

TD type to create the C JSCValue from
ctxThe JSCContext to create the value in
valThe value to create the JSCValue from

Returns

The new JSCValue which the caller owns