Skip to content

Commit

Permalink
[MERGE #5522 @MikeHolman] fix issue where helper call is reading vara…
Browse files Browse the repository at this point in the history
…rgs incorrectly on linux

Merge pull request #5522 from MikeHolman:users/michhol/vararghelperbug

Fixes #5503
  • Loading branch information
MikeHolman committed Jul 25, 2018
2 parents 55c9960 + a4852e7 commit 2451fe4
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 2451fe4

Please sign in to comment.