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

CryptographyRandom::nextInt is failed on wasmJs target #59

Open
vdshb opened this issue Jan 7, 2025 · 0 comments
Open

CryptographyRandom::nextInt is failed on wasmJs target #59

vdshb opened this issue Jan 7, 2025 · 0 comments

Comments

@vdshb
Copy link

vdshb commented Jan 7, 2025

Simple reproducer is failed on wasmJs (both nodejs and browser) target (works fine on all other targets):

@Test
fun test() {
    val k = CryptographyRandom.nextInt(10)
}

Exception:

IrLinkageError: Can not read value from variable 'jsArray': Variable uses unlinked class symbol 'org.khronos.webgl/Int8Array|null[0]'

kotlin 2.1.0

I'm not sure if it's compiler or library issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant