electron/spec/fixtures/module/print_name.js

16 lines
283 B
JavaScript
Raw Normal View History

2016-03-25 20:03:49 +00:00
exports.print = function (obj) {
return obj.constructor.name
}
2015-12-29 20:11:31 +00:00
2016-03-25 20:03:49 +00:00
exports.echo = function (obj) {
return obj
}
2016-07-25 07:30:40 +00:00
exports.typedArray = function (name) {
const int16 = new Int16Array(name.length)
for (let i = 0; i < name.length; ++i) {
int16[i] = name[i]
}
return int16
}