Skip to content

Commit a991071

Browse files
committed
don't use Buffer in common/utils.ts
1 parent d24ed62 commit a991071

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/vs/base/test/common/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ export class DeferredPromise<T> {
5151

5252
export function toResource(this: any, path: string) {
5353
if (isWindows) {
54-
return URI.file(join('C:\\', Buffer.from(this.test.fullTitle()).toString('base64'), path));
54+
return URI.file(join('C:\\', btoa(this.test.fullTitle()), path));
5555
}
5656

57-
return URI.file(join('/', Buffer.from(this.test.fullTitle()).toString('base64'), path));
57+
return URI.file(join('/', btoa(this.test.fullTitle()), path));
5858
}
5959

6060
export function suiteRepeat(n: number, description: string, callback: (this: any) => void): void {

0 commit comments

Comments
 (0)