ecmascript/settings: Add support for multiopt

Fixes #2311