| 19 | } |
| 20 | |
| 21 | Value HasOwnPropertyWithCStyleString(const CallbackInfo& info) { |
| 22 | Object obj = info[0].UnsafeAs<Object>(); |
| 23 | String jsKey = info[1].As<String>(); |
| 24 | return Boolean::New( |
| 25 | info.Env(), |
| 26 | MaybeUnwrapOr(obj.HasOwnProperty(jsKey.Utf8Value().c_str()), false)); |
| 27 | } |
| 28 | |
| 29 | Value HasOwnPropertyWithCppStyleString(const CallbackInfo& info) { |
| 30 | Object obj = info[0].UnsafeAs<Object>(); |
nothing calls this directly
no test coverage detected