spec: TypeArray should work in remote
This commit is contained in:
parent
200d09cc70
commit
eb51e080e5
2 changed files with 18 additions and 5 deletions
8
spec/fixtures/module/print_name.js
vendored
8
spec/fixtures/module/print_name.js
vendored
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue