mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 04:41:11 +00:00
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:
parent
a14508fefb
commit
bec341e6cd
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user