JSValue.makeSymbol constructor

JSValue.makeSymbol(
  1. JSContext context,
  2. String description
)

Creates a JavaScript value of the symbol type. description A description of the newly created symbol value.

Implementation

JSValue.makeSymbol(this.context, String description)
    : this.pointer = JSValueRef.jSValueMakeSymbol(
          context.pointer, JSString.fromString(description).pointer);