Sync polyfill for ES6