Skip to content

Conversation

@aneeshdk
Copy link
Contributor

DebugEval method is invoked in debug eval script context. Then the string that user enters is executed in the target script context. The newly created function object belongs to target script context but the current top of the stack is pointing to the debug eval script context. We have to marshall the function object before invoking it to fix the stack.

@aneeshdk
Copy link
Contributor Author

@akroshg @curtisman @agarwal-sandeep Can you please take a look?

pfuncScript = ScriptFunction::FromVar(CrossSite::MarshalVar(debugEvalScriptContext, pfuncScript));
}

if (useEvalMap && !found)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you disable useEvalMap with debugEvalScriptContext

DebugEval method is invoked in debug eval script context. Then the string that user enters is executed in the target script context. The newly created function object belongs to target script context but the current top of the stack is pointing to the debug eval script context. We have to marshall the function object before invoking it to fix the stack.
@aneeshdk aneeshdk force-pushed the DebugEvalCrossContextIssue branch from 472fc51 to 8c643bc Compare January 17, 2018 22:17
@chakrabot chakrabot merged commit 8c643bc into chakra-core:release/1.8 Jan 17, 2018
chakrabot pushed a commit that referenced this pull request Jan 17, 2018
Merge pull request #4565 from aneeshdk:DebugEvalCrossContextIssue

DebugEval method is invoked in debug eval script context. Then the string that user enters is executed in the target script context. The newly created function object belongs to target script context but the current top of the stack is pointing to the debug eval script context. We have to marshall the function object before invoking it to fix the stack.
chakrabot pushed a commit that referenced this pull request Jan 17, 2018
…in DebugEval

Merge pull request #4565 from aneeshdk:DebugEvalCrossContextIssue

DebugEval method is invoked in debug eval script context. Then the string that user enters is executed in the target script context. The newly created function object belongs to target script context but the current top of the stack is pointing to the debug eval script context. We have to marshall the function object before invoking it to fix the stack.
chakrabot pushed a commit that referenced this pull request Jan 17, 2018
…xt behaviour in DebugEval

Merge pull request #4565 from aneeshdk:DebugEvalCrossContextIssue

DebugEval method is invoked in debug eval script context. Then the string that user enters is executed in the target script context. The newly created function object belongs to target script context but the current top of the stack is pointing to the debug eval script context. We have to marshall the function object before invoking it to fix the stack.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants