mirror of
https://github.com/chinchang/web-maker.git
synced 2025-07-14 02:26:20 +02:00
minor fixes.
This commit is contained in:
@ -56,6 +56,7 @@
|
||||
* @param {ASTBody} Body of an AST generated by esprima or any ES compliant AST
|
||||
*/
|
||||
function addInfiniteLoopProtection(astBody) {
|
||||
if (!astBody) return;
|
||||
if (!Array.isArray(astBody)) {
|
||||
addInfiniteLoopProtection(astBody.body);
|
||||
return;
|
||||
|
Reference in New Issue
Block a user