Improve `_exec` and its test coverage

Same as for WebKit/Blink. See comment there please.