There was an error while loading. Please reload this page.
2 parents ba1c2ac + dfcc6d1 commit 41c3a7bCopy full SHA for 41c3a7b
2 files changed
.github/workflows/ci.yml
@@ -19,8 +19,6 @@ jobs:
19
- uses: actions/setup-node@v3
20
with:
21
node-version: 22
22
- - name: Verify Change Logs
23
- run: node common/scripts/install-run-rush.js change --verify
24
- name: Rush Install
25
run: node common/scripts/install-run-rush.js install
26
- name: Rush check
packages/core/src/clone.ts
@@ -38,7 +38,11 @@ export function getTypeOf (obj: any): string {
38
if (objPrototype === null) {
39
return 'Object'
40
}
41
- return {}.toString.call(obj).slice(8, -1)
+ try {
42
+ return {}.toString.call(obj).slice(8, -1)
43
+ } catch {
44
+ return 'Object'
45
+ }
46
47
48
export function clone (
0 commit comments