Skip to content
This repository was archived by the owner on Mar 19, 2026. It is now read-only.
This repository was archived by the owner on Mar 19, 2026. It is now read-only.

return a disposable string #195

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

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions