lightpanda-io / zig-js-runtime

Add a JS runtime in your Zig project
https://lightpanda.io
Apache License 2.0
16 stars 0 forks source link

return a disposable string #195

Open krichprollsch opened 8 months ago

krichprollsch commented 8 months ago

When the user's API return a not owned []const u8, jsruntime must free the string once v8 copied it. We must cleary express the two differents strings returned by the user's API:

Name ideas for the alias: TmpStr,ShortLiveStr, PassingStr, FreeStr, DisposableStr...