Skip to content

Commit

Permalink
Test cpp11 sexp
Browse files Browse the repository at this point in the history
  • Loading branch information
andrjohns committed Dec 26, 2024
1 parent 487d685 commit fb672df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/quickjsr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ extern "C" {

const char* json = to_cstring(json_);
JS_ValContainer result(rt_ctx, JS_ParseJSON(rt_ctx, json, strlen(json), "<input>"));
return quickjsr::JSValue_to_SEXP(rt_ctx, result);
return cpp11::sexp(quickjsr::JSValue_to_SEXP(rt_ctx, result));
END_CPP11
}

Expand Down

0 comments on commit fb672df

Please sign in to comment.