-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Conversation
echo(`Test #${index} - Failure a appears to have an unexpected value in the param scope function a = '${result}'`); | ||
} | ||
}, err => { | ||
echo(`T |
There was a problem hiding this comment.
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
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. |
d8cb4fe
to
96aa219
Compare
Moved the debugger test cases |
"sourceText": "return await af1(10)", | ||
"function": "af2" | ||
}, | ||
{ |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{ | ||
"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)", |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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> |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Enabling async functions by default. Also added one new test case to verify the arguments.callee behavior.
96aa219
to
fd0e438
Compare
@dotnet-bot test ubuntu_linux_test please |
@dotnet-bot test Ubuntu ubuntu_linux_test please |
Enabling async functions by default. Also added one new test case to
verify the arguments.callee behavior.