Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot fill all elemnts of Int8Array using Int8Array.fill #14247

Open
vdata1 opened this issue Sep 30, 2024 · 0 comments
Open

Cannot fill all elemnts of Int8Array using Int8Array.fill #14247

vdata1 opened this issue Sep 30, 2024 · 0 comments
Labels
bug Something isn't working jsc Something related to JavaScriptCore

Comments

@vdata1
Copy link

vdata1 commented Sep 30, 2024

What version of Bun is running?

1.1.30

What platform is your computer?

Darwin 23.6.0 x86_64 i386

What steps can reproduce the bug?

Hi,

I want to report this bug in bun, it can reproduced by running this code example:

let rab = new ArrayBuffer(1, { maxByteLength: 2});
let ta = new Int8Array(rab);

let value = {
  valueOf() {
   rab.resize(2);
    return 123;
  },
};

ta.fill(value);
console.log(ta[0]);
console.log(ta[1]); //bun: 0, node&deno: 123

Thanks,

AH

What is the expected behavior?

To fill both ta[0] and ta[1] with 123.

What do you see instead?

ta[0] = 123
ta[1] = 0

Additional information

No response

@vdata1 vdata1 added bug Something isn't working needs triage labels Sep 30, 2024
@Jarred-Sumner Jarred-Sumner added jsc Something related to JavaScriptCore and removed needs triage labels Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working jsc Something related to JavaScriptCore
Projects
None yet
Development

No branches or pull requests

2 participants