-
Notifications
You must be signed in to change notification settings - Fork 673
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Put reference on executable object's this_binding to avoid unwanted f…
…rees before exiting execution This patch fixes #4870. The implementation is based on PR #4966, only resolved the conflicts and applied requested changes. Co-authored-by: Martin Negyokru [email protected] JerryScript-DCO-1.0-Signed-off-by: Gergo Csizi [email protected]
- Loading branch information
Showing
3 changed files
with
91 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
// Copyright JS Foundation and other contributors, http://js.foundation | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
async function f() { | ||
let arr = [0.000000]; | ||
let fuzz_v152 = arr; | ||
let fuzz_v159 = fuzz_v152.__proto__; | ||
fuzz_v152.valueOf = function* (fuzz_v166, fuzz_v167) { | ||
while (arr) { | ||
} | ||
var fuzz_v172 = ~f; | ||
arr >>= [1.100000]; | ||
return fuzz_v167; | ||
}; | ||
arr.includes(arr, [340282346638528859811704183484516925440.000000], arr); | ||
delete [10]; | ||
let fuzz_v253 = f.__proto__; | ||
let fuzz_v256 = { | ||
"D5FP8": f | ||
}; | ||
arr["map"](f, new Object(true)); | ||
arr.flat(); | ||
let fuzz_v69 = false; | ||
await this; | ||
await f; | ||
var fuzz_v43 = arr -= new Date(new String({ | ||
"findIndex": arr | ||
})); | ||
await this; | ||
let fuzz_v286 = Symbol.reject(); | ||
await f; | ||
await new Promise(f); | ||
await new Promise(async function* (fuzz_v80) { | ||
var fuzz_v82 = new Uint32Array(fuzz_v80, arr, [1.100000], fuzz_v80, fuzz_v80); | ||
let fuzz_v96 = fuzz_v82.__proto__; | ||
this.length = 4; | ||
}); | ||
await new Promise(async function* (fuzz_v138, fuzz_v139) { | ||
fuzz_v138.__proto__ = fuzz_v139; | ||
let fuzz_v147 = function* (fuzz_v149, fuzz_v150, fuzz_v151, fuzz_v152) { | ||
let fuzz_v165 = Reflect.apply(fuzz_v152, { | ||
"findIndex": fuzz_v150 | ||
}, [{}]); | ||
switch ({ | ||
includes: fuzz_v138, | ||
set valueOf(fuzz_v175) { | ||
fuzz_v150.valueOf = fuzz_v175; | ||
return; | ||
} | ||
}) { | ||
case [1.100000]: | ||
throw arr; | ||
break; | ||
case 5643033980980220.000000: | ||
let fuzz_v203 = String.prototype.trim.call(new String()); | ||
break; | ||
default: | ||
fuzz_v43.valueOf = fuzz_v150; | ||
} | ||
let fuzz_v214 = fuzz_v69; | ||
let fuzz_v223 = Number.isInteger(2147483648); | ||
}; | ||
var fuzz_v228 = f; | ||
delete f.__proto__; | ||
let fuzz_v237 = {}; | ||
}); | ||
await new Promise(f); | ||
await new Promise(async function* (fuzz_v269, fuzz_v270, fuzz_v271) { | ||
class fuzz_class273 extends f { | ||
|
||
} | ||
return arr; | ||
}); | ||
await new Promise(fuzz_v286); | ||
} | ||
f(f, f); |