stefanhaustein / minijoe

Automatically exported from code.google.com/p/minijoe
7 stars 2 forks source link

Length of String is bad implemented #26

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I found this bug on JsObject method evalNative line 874.

stack.setInt(sp, stack.getString(sp).length());

stack is empty. I solved it by replace this line by:

stack.setInt(sp, ((String)this.value).length());

Original issue reported on code.google.com by janovsky...@gmail.com on 11 May 2014 at 4:15