Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ckaznocha opened this issue Apr 11, 2024 · 0 comments
Labels

Comments

@ckaznocha
Copy link

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

@ckaznocha ckaznocha added the bug label Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant