Commit 399101df authored by Michael Achenbach's avatar Michael Achenbach Committed by Commit Bot

[test] Wrap combined tests with a realm on gc fuzzer

Without realm-eval, the toplevel references in loaded tests are not
garbage-collected and changes in the tests can affect the global
object.

TBR=ulan@chromium.org
NOTRY=true

Bug: v8:7379, v8:7376
Change-Id: Id4d451e38fe49c6531a07d541ad3c67298b6acf2
Reviewed-on: https://chromium-review.googlesource.com/890519
Commit-Queue: Michael Achenbach <machenbach@chromium.org>
Reviewed-by: 's avatarMichael Achenbach <machenbach@chromium.org>
Cr-Commit-Position: refs/heads/master@{#50915}
parent 6ecd9702
......@@ -14,10 +14,12 @@ for (let jstest of arguments) {
// anonymous function to not populate global namespace.
(function () {
let realm = Realm.create();
try {
load(jstest);
Realm.eval(realm, "load(\"" + jstest + "\");");
} catch (err) {
// ignore all errors
}
Realm.dispose(realm);
})();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment