assemblyscript icon indicating copy to clipboard operation
assemblyscript copied to clipboard

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

Open ckaznocha opened this issue 1 year ago • 0 comments

Bug description

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

It is defined in the portable std here https://github.com/AssemblyScript/assemblyscript/blob/64cba2e22bc415994274dd14eeae50a5a9369d70/std/portable/index.js#L241

However it is missing from the AssemblyScript String class here: https://github.com/AssemblyScript/assemblyscript/blob/64cba2e22bc415994274dd14eeae50a5a9369d70/std/assembly/string.ts#L10

Steps to reproduce

compile the following code with asc

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

AssemblyScript version

v0.27.26

ckaznocha avatar Apr 11 '24 19:04 ckaznocha