ECMAScript 6 (Harmony) compatibility shims for legacy JavaScript engines