We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25dfd41 commit 1348adeCopy full SHA for 1348ade
lib/Runtime/Base/CallInfo.h
@@ -93,6 +93,10 @@ namespace Js
93
94
static bool HasExtraArg(CallFlags flags)
95
{
96
+ // Generally HasNewTarget should not be true if CallFlags_ExtraArg is not set.
97
+ Assert(!CallInfo::HasNewTarget(flags) || flags & CallFlags_ExtraArg);
98
+
99
+ // we will still check HasNewTarget to be safe in case if above invariant does not hold.
100
return (flags & CallFlags_ExtraArg) || CallInfo::HasNewTarget(flags);
101
}
102
0 commit comments