provegard / ncdbg

A debugger for Nashorn that uses Chrome DevTools as frontend
BSD 3-Clause "New" or "Revised" License
31 stars 5 forks source link

Improve typed array preview #73

Closed provegard closed 6 years ago

provegard commented 6 years ago

Current preview for a typed array:

image

Chrome shows:

image

Code:

var buffer = new ArrayBuffer(16);
var int32View = new Int32Array(buffer);
provegard commented 6 years ago

That Chrome uses getters for the properties may be a difference between Chrome and Nashorn, but it seems the desired behavior is to only include array indices in the top-level preview for a typed array.