Skip to content

Commit 4be022e

Browse files
committed
not assign names to arguments of executeData/executeDataAndCode functions
1 parent ceadfa4 commit 4be022e

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

js/script.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
1-
var executeData = function (tracerManager, data) {
1+
var executeData = function () {
22
try {
3-
tracerManager.deallocateAll();
4-
eval(data);
5-
tracerManager.visualize();
3+
arguments[0].deallocateAll();
4+
eval(arguments[1]);
5+
arguments[0].visualize();
66
} catch (err) {
77
return err;
88
} finally {
9-
tracerManager.removeUnallocated();
9+
arguments[0].removeUnallocated();
1010
}
1111
};
12-
var executeDataAndCode = function (tracerManager, data, code) {
12+
var executeDataAndCode = function () {
1313
try {
14-
tracerManager.deallocateAll();
15-
eval(data);
16-
eval(code);
17-
tracerManager.visualize();
14+
arguments[0].deallocateAll();
15+
eval(arguments[1]);
16+
eval(arguments[2]);
17+
arguments[0].visualize();
1818
} catch (err) {
1919
return err;
2020
} finally {
21-
tracerManager.removeUnallocated();
21+
arguments[0].removeUnallocated();
2222
}
2323
};
2424
(function () {

0 commit comments

Comments
 (0)