Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

218
Views
Why I have "ArrayBuffer is not a constructor" error?

I'm writing an extension to the extension "Binary File Viewer" for VS Code. My code is

/**
 * Select the 'aid' extension.
 */
registerFileType((fileExt, filePath, fileData) => {
    return fileExt == 'wav';
});

registerParser(() => {
    const buffer = new ArrayBuffer(4);

    let temp = new DataView(buffer);
    temp.setInt32(0, 123)
    let I = String(temp.getFloat32());
    addRow('I', I, '');
});

When I run it (actually, when it's involved by the Binary File Viewer), I have an error "Type error: ArrayBuffer is not a constructor". What I've done wrong?

about 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!