Skip to content

bug: version1.50.0->version1.51.0 file: textDiffEditor.ts new import function multibyteAwareBtoa Maximum call stack size exceeded #112013

Closed

Description

@YtCsj
  • VSCode Version: 1.51.0
  • OS Version:

Steps to Reproduce:
image
image

https://stackoverflow.com/questions/38432611/converting-arraybuffer-to-string-maximum-call-stack-size-exceeded

function toBinary(str: string): string {
   const codeUnits = new Uint16Array(str.length);
   for (let i = 0; i < codeUnits.length; i++) {
   	codeUnits[i] = str.charCodeAt(i);
   }
   return String.fromCharCode(...new Uint8Array(codeUnits.buffer));
} 

toBinary(new Array(100000).fill('vs').join('')) // Uncaught RangeError: Maximum call stack size exceeded

Does this issue occur when all extensions are disabled?: Yes/No

Activity

  1. added a commit that references this issue on Dec 7, 2020
  2. added a commit that references this issue on Dec 8, 2020
  3. added
    important
    candidate
    on Dec 8, 2020
  4. added
    bug
    on Dec 8, 2020
  5. mjbvz commented on Dec 8, 2020

    @mjbvz
    Contributor

    Fixed by #112015

  6. mjbvz commented on Dec 8, 2020

    @mjbvz
    Contributor

    Benjamin Pasero (@bpasero) We talked through the issue in Redmond and have decided not to fix it in 1.52. Based on my understanding, this should only be triggered for very long file paths and is not a regression compared to 1.51.

  7. added
    custom-editors
    and removed
    candidate
    important
    on Dec 8, 2020
  8. locked and limited conversation to collaborators on Jan 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugcustom-editorsverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions