mirror of
https://github.com/frida/frida-python
synced 2026-06-08 14:16:17 +00:00
Fix loading of scripts with early function declaration
This commit is contained in:
+2
-1
@@ -321,9 +321,10 @@ WARNING: Unable to find package 'gnureadline' needed for tab completion;
|
||||
user_script = f.read().rstrip("\r\n") + "\n\n// Frida REPL script:\n"
|
||||
|
||||
return user_script + """\
|
||||
"use strict";
|
||||
|
||||
(function () {
|
||||
"use strict";
|
||||
|
||||
function onEvaluate(expression) {
|
||||
try {
|
||||
let result = (1, eval)(expression);
|
||||
|
||||
Reference in New Issue
Block a user