Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enabling async functions by default #1691

Merged
merged 1 commit into from
Oct 5, 2016

Conversation

aneeshdk
Copy link
Contributor

@aneeshdk aneeshdk commented Oct 4, 2016

Enabling async functions by default. Also added one new test case to
verify the arguments.callee behavior.

echo(`Test #${index} - Failure a appears to have an unexpected value in the param scope function a = '${result}'`);
}
}, err => {
echo(`T
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the new test case added

@agarwal-sandeep
Copy link
Collaborator

Can we also move async debugger tests from full to core, that will make sure async functionality is working as expected in ChakraCore/JsRT debugging as well.

@aneeshdk
Copy link
Contributor Author

aneeshdk commented Oct 5, 2016

Moved the debugger test cases

"sourceText": "return await af1(10)",
"function": "af2"
},
{
Copy link
Collaborator

Choose a reason for hiding this comment

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

In PDM based debugger baselines I see a frame here "Generator.prototype.next" why is it not here?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Ok, it seems PDM enables library stack frames and our default value is false so ChakraCore doesn't give it. For now its fine but we may need to expose a functionality to enable this in ChakraCore in future.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, nice to have that...


In reply to: 82048419 [](ancestors = 82048419)

{
"line": 28,
"column": 0,
"sourceText": "p.then(result => {\r\n if (result === 100) {\r\n print(\"PASS\");\r\n }\r\n },\r\n error => {\r\n print(\"Failed : \" + error);\r\n } \r\n)",
Copy link
Contributor

Choose a reason for hiding this comment

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

curious why it is not truncated. Did we change the default, or ch has different default?

Copy link
Collaborator

Choose a reason for hiding this comment

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

sourceText is not truncated, same as PDM (callstack text) baseline behavior.

@@ -756,19 +755,19 @@
<test>
<default>
<files>default.js</files>
<compile-flags>-force:deferparse -ES6DefaultArgs -ES7AsyncAwait -ES6Generators -args summary -endargs</compile-flags>
<compile-flags>-force:deferparse -ES6DefaultArgs -ES6Generators -args summary -endargs</compile-flags>
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: while you are here , why don't you remove other flags for this test?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@akroshg
Copy link
Contributor

akroshg commented Oct 5, 2016

:shipit:

Enabling async functions by default. Also added one new test case to
verify the arguments.callee behavior.
@aneeshdk
Copy link
Contributor Author

aneeshdk commented Oct 5, 2016

@dotnet-bot test ubuntu_linux_test please

@aneeshdk
Copy link
Contributor Author

aneeshdk commented Oct 5, 2016

@dotnet-bot test Ubuntu ubuntu_linux_test please
@dotnet-bot test Ubuntu ubuntu_linux_debug_static please

@chakrabot chakrabot merged commit fd0e438 into chakra-core:master Oct 5, 2016
chakrabot pushed a commit that referenced this pull request Oct 5, 2016
Merge pull request #1691 from aneeshdk:EnableAsyncFunc

Enabling async functions by default. Also added one new test case to
verify the arguments.callee behavior.
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.

5 participants