From adcae064b6401ba346ac00637df4c66b2c328925 Mon Sep 17 00:00:00 2001 From: Ermicioi Alexandru Date: Sat, 24 Dec 2022 22:54:39 +0100 Subject: [PATCH] Add async iterator symbol to Symbol table. Added missing async iterator symbol, preventing proper implementation of custom async iterators. --- src/lualib/Symbol.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lualib/Symbol.ts b/src/lualib/Symbol.ts index d06eec37e..54b9aa23a 100644 --- a/src/lualib/Symbol.ts +++ b/src/lualib/Symbol.ts @@ -10,6 +10,7 @@ export function __TS__Symbol(this: void, description?: string | number): symbol export const Symbol = { iterator: __TS__Symbol("Symbol.iterator"), + asyncIterator: __TS__Symbol("Symbol.asyncIterator"), hasInstance: __TS__Symbol("Symbol.hasInstance"), // Not implemented