Skip to content

Enabling async functions by default#1691

Merged
chakrabot merged 1 commit into
chakra-core:masterfrom
aneeshdk:EnableAsyncFunc
Oct 5, 2016
Merged

Enabling async functions by default#1691
chakrabot merged 1 commit into
chakra-core:masterfrom
aneeshdk:EnableAsyncFunc

Conversation

@aneeshdk
Copy link
Copy Markdown
Contributor

@aneeshdk aneeshdk commented Oct 4, 2016

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

});
}
},
{
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

aneeshdk commented Oct 5, 2016

Moved the debugger test cases

"sourceText": "return await af1(10)",
"function": "af2"
},
{
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

Comment thread test/es6/rlexe.xml Outdated
<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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

aneeshdk commented Oct 5, 2016

@dotnet-bot test ubuntu_linux_test please

@aneeshdk
Copy link
Copy Markdown
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