7.0.11 returns promise instead of result

This code returns promise instead of result:

{
  "Name": "someExample",
  "CreationDate": "2022-5-23",
  "Commands": [
    {
      "Command": "store",
      "Target": "123some123",
      "Value": "someExample",
      "Description": ""
    },
    {
      "Command": "echo",
      "Target": "${someExample}",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "executeScript_Sandbox",
      "Target": "var someExample = ${someExample};\n\nsomeExample = someExample.replace(/\\D/g, '');\n\nreturn someExample;",
      "Value": "someExample",
      "Description": ""
    },
    {
      "Command": "echo",
      "Target": "${someExample}",
      "Value": "",
      "Description": ""
    }
  ]
}

In 6.2.8 result is:

Blockquote
123some123
123123

In 7.0.11 result is:

Blockquote
123some123
[object Promise]

If I didn’t use js replace function then result is string instead of promise.

Thanks for this test case. This issue will be fixed with the next update, along with this similar issue: RPA v7.0.9 JS-Interpreter RegEx issue - #5 by porker