Bug 1890793: Assert CallArgs::newTarget is not gray. r=spidermonkey-reviewers,sfink,iain

Differential Revision: https://phabricator.services.mozilla.com/D207160
This commit is contained in:
André Bargull 2024-04-11 07:51:12 +00:00
parent a14508fefb
commit bec341e6cd

View File

@ -315,6 +315,9 @@ class MOZ_STACK_CLASS MOZ_NON_PARAM CallArgs
for (unsigned i = 0; i < argc; ++i) {
AssertValueIsNotGray(argv[i]);
}
if (constructing) {
AssertValueIsNotGray(args.newTarget());
}
#endif
return args;
}