Skip to content

Conversation

@obastemur
Copy link
Collaborator

No description provided.

@obastemur
Copy link
Collaborator Author

Also added a test case

@obastemur
Copy link
Collaborator Author

@dotnet-bot test Ubuntu ubuntu_linux_release

@MikeHolman
Copy link
Contributor

:shipit:

AsmJsFunc* AsmJsModuleCompiler::CreateNewFunctionEntry( ParseNode* pnodeFnc )
{
PropertyName name = ParserWrapper::FunctionName( pnodeFnc );
if ( !name )
Copy link
Collaborator

Choose a reason for hiding this comment

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

name [](start = 14, length = 4)

Do we need use a default name like 'anonymous function' for it?

Copy link
Contributor

Choose a reason for hiding this comment

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

No, this should be invalid asm.js. Returning null here will invalidate the asm.js module and then be parsed as normal javascript

@obastemur
Copy link
Collaborator Author

@Cellule @MikeHolman @ThomsonTan Thanks for the reviews!

@chakrabot chakrabot merged commit 5449f72 into chakra-core:master Dec 23, 2016
chakrabot pushed a commit that referenced this pull request Dec 23, 2016
Merge pull request #2272 from obastemur:fix_asmjs_crash
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.

6 participants