getPropertyForKey method
Implementation
JSValue getPropertyForKey(JSValue propertyKey) {
final JSException exception = JSException.create(_context);
try {
final JSValueRef valueRef = js_bd.JSObjectGetPropertyForKey(_context.ref, _ref, propertyKey.ref, exception.ref);
if (exception.shouldThrow) {
throw exception.error;
}
return JSValue(_context, valueRef);
} finally {
exception.release();
}
}