Skip to content

Commit

Permalink
feat: polyfill Symbol.dispose/asyncDispose
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillgroshkov committed Aug 31, 2023
1 parent b865346 commit b5af215
Show file tree
Hide file tree
Showing 2 changed files with 213 additions and 158 deletions.
5 changes: 5 additions & 0 deletions src/bin/tsn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
This CLI command is optimized for speed, so, it includes minimum dependencies
*/

// @ts-expect-error polyfill
Symbol.dispose ??= Symbol('Symbol.dispose')
// @ts-expect-error polyfill
Symbol.asyncDispose ??= Symbol('Symbol.asyncDispose')

import fs from 'node:fs'
import path from 'node:path'
import type nodejsLib from '@naturalcycles/nodejs-lib'
Expand Down
Loading

0 comments on commit b5af215

Please sign in to comment.