JSValue.makeString constructor

JSValue.makeString(
  1. JSContext context,
  2. String string
)

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

Implementation

JSValue.makeString(this.context, String string)
    : this.pointer = JSValueRef.jSValueMakeString(
          context.pointer, JSString.fromString(string).pointer);