deleteProperty method

bool deleteProperty(
  1. String propertyName
)

Implementation

bool deleteProperty(String propertyName) {
  final JSException exception = JSException.create(_context);
  final JSString jsPropertyName = JSString.fromString(propertyName);
  try {
    final bool result = js_bd.JSObjectDeleteProperty(_context.ref, _ref, jsPropertyName.ref, exception.ref);
    if (exception.shouldThrow) {
      throw exception.error;
    }
    return result;
  } finally {
    jsPropertyName.release();
    exception.release();
  }
}