AssemblyScript / assemblyscript

A TypeScript-like language for WebAssembly.
https://www.assemblyscript.org
Apache License 2.0
16.6k stars 650 forks source link

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

Open ckaznocha opened 2 months ago

ckaznocha commented 2 months ago

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