ecmascript/api-v1: Fix typo

Fixes #2325