Skip to content

Commit

Permalink
fix issue where helper call is reading varargs incorrectly on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeHolman committed Jul 24, 2018
1 parent 9796560 commit a4852e7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions lib/Runtime/Language/Arguments.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ inline int _count_args(const T1&, const T2&, const T3&, const T4&, Js::CallInfo
{
return 5;
}
template <class T1, class T2, class T3, class T4, class T5>
inline int _count_args(const T1&, const T2&, const T3&, const T4&, const T5&, Js::CallInfo callInfo)
{
return 6;
}
#endif


Expand Down
2 changes: 1 addition & 1 deletion lib/Runtime/Language/ProfilingHelpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ using namespace Js;
CallInfo callInfo,
...)
{
ARGUMENTS(args, callInfo);
ARGUMENTS(args, spreadIndices, callee, framePointer, profileId, arrayProfileId, callInfo);

Js::ScriptFunction *function = ScriptFunction::UnsafeFromVar(JavascriptCallStackLayout::FromFramePointer(framePointer)->functionObject);
ScriptContext* scriptContext = function->GetScriptContext();
Expand Down

0 comments on commit a4852e7

Please sign in to comment.