diff --git a/jest/setup.js b/jest/setup.js index 2ffa8ecddfb9c4..9a439f81537530 100644 --- a/jest/setup.js +++ b/jest/setup.js @@ -12,7 +12,7 @@ const MockNativeMethods = jest.requireActual('./MockNativeMethods'); const mockComponent = jest.requireActual('./mockComponent'); -jest.requireActual('@react-native/polyfills/Object.es7'); +jest.requireActual('@react-native/polyfills/Object.es8'); jest.requireActual('@react-native/polyfills/error-guard'); global.__DEV__ = true; diff --git a/packages/polyfills/Object.es7.js b/packages/polyfills/Object.es8.js similarity index 100% rename from packages/polyfills/Object.es7.js rename to packages/polyfills/Object.es8.js diff --git a/packages/polyfills/__tests__/Object.es7-test.js b/packages/polyfills/__tests__/Object.es8-test.js similarity index 98% rename from packages/polyfills/__tests__/Object.es7-test.js rename to packages/polyfills/__tests__/Object.es8-test.js index c51c32c7f9ae76..b52771226eb16e 100644 --- a/packages/polyfills/__tests__/Object.es7-test.js +++ b/packages/polyfills/__tests__/Object.es8-test.js @@ -10,12 +10,12 @@ 'use strict'; -describe('Object (ES7)', () => { +describe('Object (ES8)', () => { beforeEach(() => { delete Object.entries; delete Object.values; jest.resetModules(); - require('../Object.es7'); + require('../Object.es8'); }); describe('Object.entries', () => { diff --git a/packages/polyfills/index.js b/packages/polyfills/index.js index b4dd4b63c6754c..4b515f6a755cb1 100644 --- a/packages/polyfills/index.js +++ b/packages/polyfills/index.js @@ -12,5 +12,5 @@ module.exports = () => [ require.resolve('./console.js'), require.resolve('./error-guard.js'), - require.resolve('./Object.es7.js'), + require.resolve('./Object.es8.js'), ];