Skip to content

TypedArray.prototype.set(array, offset) #1870

Closed
@glistening

Description

@glistening

Currently, JerryScript supports selected APIs in TypedArray. For example, TypedArray.prototype.set(array, offset)` is not supported.

// h.js
var buffer = new ArrayBuffer(8);
var uint8 = new Uint8Array(buffer);
uint8.set([1,2,3], 3);
print(uint8);  // console.log for node
$ node h.js
Uint8Array { '0': 0, '1': 0, '2': 0, '3': 1, '4': 2, '5': 3, '6': 0, '7': 0 }

$ jsc h.js
[object Uint8Array]

$ jerry h.js
Script Error: TypeError

Is there a plan to implement remaining APIs?

Metadata

Metadata

Assignees

No one assigned

    Labels

    ES2015Related to ES2015 featuresfeature requestRequested feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions