Skip to content
Browse files

Fix illegal invocation

  • Loading branch information...
1 parent 56e55d4 commit f66e568e0abad814fa5f77e358aa95435d8f365b @mitchellrj committed Sep 22, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 jspack.js
View
4 jspack.js
@@ -13,8 +13,8 @@ function JSPack()
// Raw byte arrays
m._DeArray = function (a, p, l)
{
- var slice = a.subarray || a.slice;
- return [slice(p,p+l)];
+ var slice = a.subarray ? 'subarray' : 'slice';
+ return [a[slice](p,p+l)];
};
m._EnArray = function (a, p, l, v)
{

0 comments on commit f66e568

Please sign in to comment.
Something went wrong with that request. Please try again.