Skip to content

Commit

Permalink
Update runtime/js-compute-runtime/builtins/backend.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Trevor Elliott <[email protected]>
  • Loading branch information
JakeChampion and elliottt authored Aug 14, 2023
1 parent 63e8f1d commit be7e7fa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions runtime/js-compute-runtime/builtins/backend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -870,8 +870,7 @@ bool Backend::fromName(JSContext *cx, unsigned argc, JS::Value *vp) {
return false;
}
auto nameChars = core::encode(cx, name);
std::string_view name_view = nameChars;
auto res = host_api::Backend::exists(name_view);
auto res = host_api::Backend::exists(nameChars);
if (auto *err = res.to_err()) {
HANDLE_ERROR(cx, *err);
return false;
Expand Down

0 comments on commit be7e7fa

Please sign in to comment.