| 122 | } |
| 123 | |
| 124 | inline JSValue JSFromStdString(JSContext* ctx, const std::string_view str) |
| 125 | { |
| 126 | return JS_NewStringLen(ctx, str.data(), str.length()); |
| 127 | } |
| 128 | |
| 129 | inline std::optional<std::string> JSToOptionalStdString(JSContext* ctx, JSValue obj, const char* property) |
| 130 | { |
no test coverage detected