weimingtom / minijoe

Automatically exported from code.google.com/p/minijoe
1 stars 0 forks source link

Length of String is bad implemented #26

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 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