Adapt ecmascript compiler to recent tree-il changes for prompts.