openHAB 4.0 Release discussion

After upgrade from 3.4.4 to 4.0 when calling setTimer from JavaScript it returns undefined instead of a timer id.

To reproduce create testTimer.js with the following code:

console.info('before');
const id = setTimeout(() => {
  console.info('timer reached');
}, 1000);
console.info(`timer ${id} created`);

With release 3.4.4 I get:

2023-07-26 11:21:00.638 [INFO ] [ort.loader.AbstractScriptFileWatcher] - Loading script '/openhab/conf/automation/js/testTimer.js'
2023-07-26 11:21:13.275 [INFO ] [.automation.script.file.testTimer.js] - before
2023-07-26 11:21:13.281 [INFO ] [.automation.script.file.testTimer.js] - timer 1 created
2023-07-26 11:21:14.284 [INFO ] [.automation.script.file.testTimer.js] - timer reached

But in 4.0.0 with the same script I get:

2023-07-26 11:19:33.707 [INFO ] [ort.loader.AbstractScriptFileWatcher] - (Re-)Loading script '/openhab/conf/automation/js/testTimer.js'
2023-07-26 11:19:37.257 [INFO ] [.automation.script.file.testTimer.js] - before
2023-07-26 11:19:37.259 [INFO ] [.automation.script.file.testTimer.js] - timer undefined created
2023-07-26 11:19:38.259 [INFO ] [.automation.script.file.testTimer.js] - timer reached

Openhab is running as docker container on a raspberry.

Is this a known issue?