jerryscript-project / jerryscript

Ultra-lightweight JavaScript engine for the Internet of Things.
https://jerryscript.net
Apache License 2.0
6.93k stars 671 forks source link

Fix gc of async destructuring assignments of strings #5126

Closed matetokodi closed 8 months ago

matetokodi commented 8 months ago

This fixes #5089

When garbage collection is running on a paused async function that includes destructuring assignments of strings, the string can be a direct string, and not an object, which cannot be marked as visited, as it does not have a visited flag.

akosthekiss commented 8 months ago

I am landing this. Something is off with the macOS tests, they should not be running for 6 hours when everything else is running under 6 minutes.