Espruino/tests/test_E_toString.js
Gordon Williams 867970332b Fix E.toString regression (and counting elements in supplied arrays) for arraybuffer
(regression happened after move to IterateCallback with buffers rather than chars)
2019-09-25 13:17:40 +01:00

4 lines
74 B
JavaScript

var s = E.toString(new Uint8Array([108, 111]).buffer);
result = s=="lo";