assemblyscript
assemblyscript copied to clipboard
ERROR TS2339: Property 'fromCodePoints' does not exist on type '~lib/string/String'.
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