Skip to content

Conversation

@galpeter
Copy link
Contributor

With a disabled ES2015 module system the build fails as an enum value
is incorrectly guarded and used.

@galpeter galpeter force-pushed the fix_build_nomodule branch from b872133 to 29bde04 Compare July 29, 2020 16:55
@ossy-szeged
Copy link
Contributor

LGTM (informal)

Copy link
Member

@rerobika rerobika left a comment

Choose a reason for hiding this comment

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

LGTM

#if ENABLED (JERRY_MODULE_SYSTEM)
parser_compiled_code_set_function_name (context_p, compiled_code_p, function_name_index, 0);
#endif /* ENABLED (JERRY_ESNEXT) */
#endif /* ENABLED (JERRY_MODULE_SYSTEM) */
Copy link
Member

Choose a reason for hiding this comment

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

Are you sure this should be module guarded? This seems more related to function names than modules.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

True, with this the function will not have a name in case of disabled module system. Will update.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@dbatyai I've update the PR.

With a disabled ES2015 module system the build fails as an enum value
is incorrectly guarded and used.

JerryScript-DCO-1.0-Signed-off-by: Peter Gal [email protected]
@galpeter galpeter force-pushed the fix_build_nomodule branch from 29bde04 to 87b1b9d Compare July 31, 2020 12:32
Copy link
Member

@dbatyai dbatyai left a comment

Choose a reason for hiding this comment

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

LGTM

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.

4 participants