enhancementhelp wanted
Description
execute: const test = new RegExp('.', 'd'); output: Uncaught SyntaxError: Invalid flags supplied to RegExp constructor 'd' at new RegExp () at :1:14 (anonymous) @ VM524:1
execute: const test = new RegExp('.', 'd'); output: Uncaught SyntaxError: Invalid flags supplied to RegExp constructor 'd' at new RegExp () at :1:14 (anonymous) @ VM524:1