Skip to content

Commit

Permalink
Remove monitorType
Browse files Browse the repository at this point in the history
  • Loading branch information
choller committed Oct 1, 2020
1 parent c74a620 commit 8edc769
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
1 change: 1 addition & 0 deletions src/funfuzz/js/loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,7 @@ def jitCompareLines(jsfunfuzzOutputFilename, marker): # pylint: disable=invalid
"getLcovInfo = function() { };\n",
"getMarks = function() { };\n",
"isAsmJSCompilationAvailable = function() { };\n",
"monitorType = function() { };\n",
"nukeAllCCWs = function() { };\n",
"Object.getOwnPropertyNames = function() { };\n",
"Object.getOwnPropertyDescriptors = function() { };\n",
Expand Down
15 changes: 0 additions & 15 deletions src/funfuzz/js/shared/testing-functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,21 +192,6 @@ function fuzzTestingFunctionsCtor (fGlobal) { /* eslint-disable-line require-jsd
// Enable/disable deferred allocation on the parser
{ w: 5, v: function (d, b) { return `setDeferredParserAlloc(true);`; } },
{ w: 1, v: function (d, b) { return `setDeferredParserAlloc(false);`; } },

// Test monitorType(fun, index, val) as per bug 1560070
// fun: function/null/undefined
// index: a number [0-999]? (the larger the number, the larger the function/memory used so 999 may be reasonable?)
// val: any value, string or null object or even createIsHTMLDDA, but especially test "unknown" and "unknownObject"
{ w: 10,
v: function (d, b) {
return (
`monitorType(` +
`${rnd(2) ? makeFunction(d, b) : undefined}, ` +
`${rnd(2) ? (rnd(2) ? 0 : 1) : rnd(1000)}, ` +
`${rnd(2) ? (rnd(2) ? "'unknown'" : "'unknownObject'") : makeId(d, b)});`
);
}
}
];

// Functions only in the SpiderMonkey shell
Expand Down

0 comments on commit 8edc769

Please sign in to comment.