From a9cc5ffc22d328c2d3f3a84c752b0bc95203d4a6 Mon Sep 17 00:00:00 2001 From: Chris Shepherd Date: Mon, 19 Jul 2021 18:27:51 +0000 Subject: [PATCH] Rename Object.es7.js to Object.es8.js --- jest/setup.js | 2 +- packages/polyfills/{Object.es7.js => Object.es8.js} | 0 .../__tests__/{Object.es7-test.js => Object.es8-test.js} | 2 +- packages/polyfills/index.js | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename packages/polyfills/{Object.es7.js => Object.es8.js} (100%) rename packages/polyfills/__tests__/{Object.es7-test.js => Object.es8-test.js} (99%) 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 99% rename from packages/polyfills/__tests__/Object.es7-test.js rename to packages/polyfills/__tests__/Object.es8-test.js index c51c32c7f9ae76..3d3cff32138cad 100644 --- a/packages/polyfills/__tests__/Object.es7-test.js +++ b/packages/polyfills/__tests__/Object.es8-test.js @@ -15,7 +15,7 @@ describe('Object (ES7)', () => { 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'), ];