Improved array handling. Better multidimensional array support.

This commit is contained in:
adelphes
2017-06-24 16:18:22 +01:00
parent 4a31b83eb9
commit 3dbfd8ef2a
2 changed files with 4 additions and 4 deletions

View File

@@ -537,12 +537,12 @@ function _JDWP() {
}
m = signature.match(/^(\[+)(.+)$/);
if (m) {
var elementtype = this.signaturetotype(m[2]);
var elementtype = this.signaturetotype(m[1].slice(0,-1) + m[2]);
return {
signature:signature,
arraydims:m[1].length,
elementtype: elementtype,
typename:elementtype.typename+m[1].replace(/\[/g,'[]'),
typename:elementtype.typename+'[]',
}
}
var primitivetypes = {