mirror of
https://github.com/frida/frida-python.git
synced 2026-11-07 09:35:57 -10:00
Remove redundant 'use strict' directives
This commit is contained in:
1 parent
1f1497818e
commit
9412e5b919
4 files changed
+1
-14
No files matched your search
@@ -6,8 +6,6 @@ import frida
|
||||
|
||||
system_session = frida.attach(0)
|
||||
bytecode = system_session.compile_script(name="bytecode-example", source="""\
|
||||
'use strict';
|
||||
|
||||
rpc.exports = {
|
||||
listThreads: function () {
|
||||
return Process.enumerateThreadsSync();
|
||||
|
||||
@@ -44,8 +44,7 @@ class Application(object):
|
||||
print("✔ enable_child_gating()")
|
||||
session.enable_child_gating()
|
||||
print("✔ create_script()")
|
||||
script = session.create_script("""'use strict';
|
||||
|
||||
script = session.create_script("""\
|
||||
Interceptor.attach(Module.findExportByName(null, 'open'), {
|
||||
onEnter: function (args) {
|
||||
send({
|
||||
|
||||
@@ -6,8 +6,6 @@ import frida
|
||||
|
||||
session = frida.attach("Twitter")
|
||||
script = session.create_script("""\
|
||||
'use strict';
|
||||
|
||||
rpc.exports = {
|
||||
hello: function () {
|
||||
return 'Hello';
|
||||
|
||||
@@ -33,8 +33,6 @@ class TestRpc(unittest.TestCase):
|
||||
|
||||
def test_basics(self):
|
||||
script = self.session.create_script(name="test-rpc", source="""\
|
||||
"use strict";
|
||||
|
||||
rpc.exports = {
|
||||
add: function (a, b) {
|
||||
var result = a + b;
|
||||
@@ -60,8 +58,6 @@ rpc.exports = {
|
||||
|
||||
def test_post_failure(self):
|
||||
script = self.session.create_script(name="test-rpc", source="""\
|
||||
"use strict";
|
||||
|
||||
rpc.exports = {
|
||||
init: function () {
|
||||
},
|
||||
@@ -76,8 +72,6 @@ rpc.exports = {
|
||||
|
||||
def test_unload_mid_request(self):
|
||||
script = self.session.create_script(name="test-rpc", source="""\
|
||||
"use strict";
|
||||
|
||||
rpc.exports = {
|
||||
waitForever: function () {
|
||||
return new Promise(function () {});
|
||||
@@ -97,8 +91,6 @@ rpc.exports = {
|
||||
|
||||
def test_detach_mid_request(self):
|
||||
script = self.session.create_script(name="test-rpc", source="""\
|
||||
"use strict";
|
||||
|
||||
rpc.exports = {
|
||||
waitForever: function () {
|
||||
return new Promise(function () {});
|
||||
|
||||
Reference in new issue
Block a user