Skip to content

ERROR TS2339: Property 'fromCodePoints' does not exist on type '~lib/string/String'. #2841

Open
@ckaznocha

Description

@ckaznocha

Bug description

String.fromCodePoints is documented here: https://www.assemblyscript.org/stdlib/string.html#static-members

It is defined in the portable std here

String["fromCodePoints"] = function fromCodePoints(arr) {

However it is missing from the AssemblyScript String class here:

@final export abstract class String {

Steps to reproduce

compile the following code with asc

const foo = String.fromCodePoints([102, 111, 111]);

AssemblyScript version

v0.27.26

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions