stringCopy property

JSString stringCopy

Implementation

JSString get stringCopy {
  final JSException exception = JSException.create(_context);
  try {
    final JSStringRef stringRef = js_bd.JSValueToStringCopy(_context.ref, _ref, exception.ref);
    if (exception.shouldThrow) {
      throw exception.error;
    }
    return JSString(stringRef);
  } finally {
    exception.release();
  }
}