Fix loading of scripts with early function declaration

This commit is contained in:
Ole André Vadla Ravnås
2015-05-27 14:02:42 +02:00
parent 40895d91e5
commit 89930d1720
+2 -1
View File
@@ -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);