Skip to content

return a disposable string #195

Open
@krichprollsch

Description

@krichprollsch

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:

  • string owned by the user's API must continue to return []const u8. This string must not be free by jsruntime
  • string owned by the caller must return a new jsruntime alias of []const u8. jsruntime must free this string.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions