JSValue.makeNumber constructor

JSValue.makeNumber(
  1. JSContext context,
  2. double number
)

Creates a JavaScript value of the number type. number The double to assign to the newly created JSValue.

Implementation

JSValue.makeNumber(this.context, double number)
    : this.pointer = JSValueRef.jSValueMakeNumber(context.pointer, number);