Skip to content

Pretty print objects #3

@ghost

Description

Projects like Deno and Hermes can print Set objects in a useful representation:

$ deno
> new Set([10, 20])
Set { 10, 20 }
$ hermes-repl
>> new Set([10, 20])
Set { 10, 20 }

However XST output is of limited usefulness:

$ cat one.js
const e1 = new Set([10, 20]);
print(e1);

$ xst -s one.js
[object Set]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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