
Reproduction Steps:
- Run
gradle browserWebpack
- Copy files in
build/compileSync/js/main/productionExecutable/kotlin into a NodeJS project.
- Use the Kotlin/JS compiled files that use secure-random.
- Run Bunjs (Fails here).
Note: Additionally, using the compiled Webpack also causes the same bug when running on NodeJS.
Work around: Delete the first if-statement and leave whatever was in the else statement.
Reproduction Steps:
gradle browserWebpackbuild/compileSync/js/main/productionExecutable/kotlininto a NodeJS project.Note: Additionally, using the compiled Webpack also causes the same bug when running on NodeJS.
Work around: Delete the first if-statement and leave whatever was in the else statement.