diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 568d14f..c6f30be 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,8 +19,6 @@ jobs: - uses: actions/setup-node@v3 with: node-version: 22 - - name: Verify Change Logs - run: node common/scripts/install-run-rush.js change --verify - name: Rush Install run: node common/scripts/install-run-rush.js install - name: Rush check diff --git a/packages/core/src/clone.ts b/packages/core/src/clone.ts index 060a7e5..0e55aaa 100644 --- a/packages/core/src/clone.ts +++ b/packages/core/src/clone.ts @@ -31,7 +31,11 @@ export function getTypeOf (obj: any): string { if (objPrototype === null) { return 'Object' } - return {}.toString.call(obj).slice(8, -1) + try { + return {}.toString.call(obj).slice(8, -1) + } catch { + return 'Object' + } } export function clone (