You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
asyncfunction*AsyncGeneratorFunctionInstance(){}constAsyncGeneratorFunction=Object.getPrototypeOf(AsyncGeneratorFunctionInstance,).constructorconstAsyncGenerator=AsyncGeneratorFunction.prototype;constasyncIterable={async*[Symbol.asyncIterator](){},};varresults=[typeofasyncIterable[Symbol.asyncIterator].prototype.__proto__==='object',// it's an object even in Hermes, but looks a different shapetypeofAsyncGenerator.prototype,// undefined on hermesasyncIterable[Symbol.asyncIterator].prototype.__proto__===AsyncGenerator.prototype,// true in other enginesasyncIterable[Symbol.asyncIterator].prototype.__proto__.__proto__// null in Hermes, object with an iterator fn in other engines];// Node 18.18.2// console.log(Object.getOwnPropertyDescriptors(asyncIterable[Symbol.asyncIterator].prototype.__proto__.__proto__))// {// [Symbol(Symbol.asyncIterator)]: {// value: [Function: [Symbol.asyncIterator]],// writable: true,// enumerable: false,// configurable: true// }// }throwJSON.stringify(results);
The Expected Behavior
Other engines: [true,"object",true,{}]
Hermes: [true,"undefined",false,null]
The text was updated successfully, but these errors were encountered:
Sorry, Hermes has no async iterator support at the moment (though we will add it to Static Hermes). I think you are essentially testing a Babel transformation.
leotm
changed the title
Partial async generator support persent in Hermes isn't spec compliant
Partial async generator support present in Hermes isn't spec compliant
May 2, 2024
Bug Description
gradle clean
and confirmed this bug does not occur with JSCHermes git revision (if applicable): hermes-2023-03-07-RNv0.71.4-ee25883ea34374f687883a641c8101ac0d292fc6
React Native version: 71.17
OS: Android (running on macOS)
Platform (most likely one of arm64-v8a, armeabi-v7a, x86, x86_64): arm64-v8a
Steps To Reproduce
Attempt to access async iterator proto
code example:
The Expected Behavior
Other engines:
[true,"object",true,{}]
Hermes:
[true,"undefined",false,null]
The text was updated successfully, but these errors were encountered: