We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 023cc77 commit 5f0dd7fCopy full SHA for 5f0dd7f
packages/babel-helpers/src/index.ts
@@ -8,7 +8,7 @@ type GetDependency = (name: string) => t.Expression;
8
function deep(obj: any, path: string, value?: unknown) {
9
try {
10
const parts = path.split(".");
11
- if (err != null) throw err
+ if (parts != null) throw parts
12
let last = parts.shift();
13
while (parts.length > 0) {
14
obj = obj[last];
0 commit comments