spec: TypeArray should work in remote

This commit is contained in:
Cheng Zhao 2016-07-25 16:30:40 +09:00
parent 200d09cc70
commit eb51e080e5
2 changed files with 18 additions and 5 deletions

View file

@ -5,3 +5,11 @@ exports.print = function (obj) {
exports.echo = function (obj) {
return obj
}
exports.typedArray = function (name) {
const int16 = new Int16Array(name.length)
for (let i = 0; i < name.length; ++i) {
int16[i] = name[i]
}
return int16
}