Skip to content

Commit

Permalink
bug fix; overload indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
H4oK3 committed Dec 3, 2019
1 parent 3d62558 commit d559811
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions scripts/hook/hook_mini_frag.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
retval = null
console.log("Exception - cannot compute retval.." + String(err))
}
console.log("{{clazz_name}}.{{method_name}} invoked")
miniLog("{{clazz_name}}.{{method_name}}", String(arg_type), String(arg_dump))
return retval;
}
{% else %}
Expand All @@ -45,8 +45,7 @@
retval = null
console.log("Exception - cannot compute retval.." + String(err))
}

miniLog("{{clazz_name}}.{{method_name}}", String(arg_dump), i)
miniLog("{{clazz_name}}.{{method_name}}", String(arg_type), String(arg_dump))
return retval;
}
}
Expand Down
5 changes: 2 additions & 3 deletions scripts/hook/hook_tpl_mini.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
function miniLog(methodname, arg_dump, index){
index = (typeof index !== 'undefined') ? index : 0
console.log('[+]' + methodname + "[" + String(index) + "] invoked")
function miniLog(methodname, arg_type, arg_dump){
console.log('[+]' + methodname + "(" + arg_type + ")")
console.log(arg_dump)
}

Expand Down

0 comments on commit d559811

Please sign in to comment.