Skip to content

Commit db8b69e

Browse files
committed
fix(shims): Bind crypto to randomUUID
1 parent be52a88 commit db8b69e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/agents-core/src/shims/shims-browser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export class BrowserEventEmitter<
6161

6262
export { BrowserEventEmitter as RuntimeEventEmitter };
6363

64-
export const randomUUID = crypto.randomUUID;
64+
export const randomUUID = crypto.randomUUID.bind(crypto);
6565
export const Readable = class Readable {
6666
constructor() {}
6767
pipeTo(

0 commit comments

Comments
 (0)