• dehrenberg's avatar
    Implement %TypedArray%.prototype.slice · 51df8df9
    dehrenberg authored
    The initial implementation of this method takes a couple shortcuts:
    - At some points in the spec, we should be making a reference to
      "Table 49" and instead do property lookup on the constructor.
      This is an issue with some other TypedArray methods too.
    - The spec indicates that, if constructor and @@species haven't been
      messed with in particular ways, then there should be a memcpy
      from the old to the new. That fast path is not implemented here
      in this patch, but because V8 doesn't canonicalize NaN, the result
      isn't observably different.
    
    BUG=v8:3578
    LOG=Y
    R=arv
    
    Review URL: https://codereview.chromium.org/1170023002
    
    Cr-Commit-Position: refs/heads/master@{#28882}
    51df8df9
harmony-typedarray.js 11.5 KB