Skip to content

Commit 8e6e165

Browse files
authored
Update index.ts
if (err != null) throw err
1 parent 22de31b commit 8e6e165

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/babel-helpers/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ type GetDependency = (name: string) => t.Expression;
88
function deep(obj: any, path: string, value?: unknown) {
99
try {
1010
const parts = path.split(".");
11+
if (err != null) throw err
1112
let last = parts.shift();
1213
while (parts.length > 0) {
1314
obj = obj[last];

0 commit comments

Comments
 (0)