diff options
Diffstat (limited to 'src/embind')
-rwxr-xr-x | src/embind/embind.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/embind/embind.js b/src/embind/embind.js index 078b5c1c..bd13087d 100755 --- a/src/embind/embind.js +++ b/src/embind/embind.js @@ -348,6 +348,10 @@ function __embind_register_std_string(rawType, name) { return a.join(''); }, toWireType: function(destructors, value) { + if (value instanceof ArrayBuffer) { + value = new Uint8Array(value); + } + function getTAElement(ta, index) { return ta[index]; } |