refactor: remove ToV8(isolate, const char*) (#46108)

This commit is contained in:
Charles Kerr 2025-03-20 04:04:50 -05:00 committed by GitHub
parent 86cc9f626f
commit c4800d9934
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 13 deletions

View file

@ -61,15 +61,6 @@ struct Converter<char[N]> {
}
};
template <>
struct Converter<const char*> {
static v8::Local<v8::Value> ToV8(v8::Isolate* isolate, const char* val) {
return v8::String::NewFromUtf8(isolate, val ? val : "",
v8::NewStringType::kNormal)
.ToLocalChecked();
}
};
template <>
struct Converter<v8::Local<v8::Array>> {
static v8::Local<v8::Value> ToV8(v8::Isolate* isolate,