mirror of
https://github.com/luzhisheng/js_reverse.git
synced 2025-04-12 11:37:09 +08:00
14.AST编写的插件报错该怎么定位和处理
This commit is contained in:
parent
6ea4595184
commit
3a4750a2f8
7
AST抽象语法树/14.AST编写的插件报错该怎么定位和处理/README.md
Normal file
7
AST抽象语法树/14.AST编写的插件报错该怎么定位和处理/README.md
Normal file
@ -0,0 +1,7 @@
|
||||
插件报错后,一般我会在插件的第一行打印报错的源代码:
|
||||
|
||||
```javascript
|
||||
console.log(path.toString());
|
||||
```
|
||||
|
||||
观察当前源代码的特征,如果不符合所遍历的规则,可以进行return。 也可以进行判断,只处理需要处理的path。
|
Loading…
x
Reference in New Issue
Block a user