KubeJS

KubeJS

107M Downloads

Array.prototype.splice throws an error when used with an array of lenght 1

mariusvn opened this issue ยท 0 comments

commented

Minecraft Version

1.21.1

KubeJS Version

2101.7.1-build.181

Rhino Version

2101.2.7-build.77

Architectury Version

13.0.8

Forge/Fabric Version

NeoForge v21.1.193

Describe your issue

When i use Array.prototype.splice with an array of lenght 1, it throws the error Index 1 out of bounds for length 1

It throws the error no matter the index selected.

Steps to reproduce:

let myarray = ['test'];

myarray.splice(0, 1);

Crash report/logs

No response