Skip to content

Commit

Permalink
fix(async_hooks): add snapshot stub
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed May 24, 2023
1 parent 4de6a50 commit 1eec581
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/runtime/node/async_hooks/_async-local-storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,8 @@ export class AsyncLocalStorage<T> implements asyncHooks.AsyncLocalStorage<T> {
this._currentStore = _previousStore;
return res;
}

static snapshot(): any {
throw new Error("[unenv] `AsyncLocalStorage.snapshot` is not implemented!");
}
}

0 comments on commit 1eec581

Please sign in to comment.