| 589 | return Valdi::JSValueRef(); |
| 590 | } |
| 591 | |
| 592 | auto defineDataProperty = [&](JSObjectRef object, |
| 593 | std::string_view name, |
| 594 | const Valdi::JSValue& value, |
| 595 | bool writable, |
| 596 | bool enumerable, |
| 597 | bool configurable) -> bool { |
| 598 | auto propertyName = newPropertyName(name); |
| 599 | JSValueRef exception = nullptr; |
| 600 | JSObjectSetProperty(getJSGlobalContext(), |
| 601 | object, |
| 602 | fromValdiJSPropertyName(propertyName.get()), |
| 603 | fromValdiJSValue(value).valueRef, |
| 604 | toJSCorePropertyAttributes(writable, enumerable, configurable), |
| 605 | &exception); |
| 606 | if (exception != nullptr) { |
| 607 | storeException(exceptionTracker, exception); |
nothing calls this directly
no test coverage detected