Skip to content

Don't export 'run' runtime method by default - #17383

Merged
sbc100 merged 1 commit into
mainfrom
remove_run_export
Jul 7, 2022
Merged

Don't export 'run' runtime method by default#17383
sbc100 merged 1 commit into
mainfrom
remove_run_export

Conversation

@sbc100

@sbc100 sbc100 commented Jul 7, 2022

Copy link
Copy Markdown
Collaborator

Instead allow folks to export it via EXPORTED_RUNTIME_METHODS, just
other similar functions such as abort.

See #9334 and 4ccf542

@sbc100
sbc100 requested a review from kripken July 7, 2022 02:59
@sbc100
sbc100 force-pushed the remove_run_export branch from 8d6fa34 to 0b67032 Compare July 7, 2022 03:00

@kripken kripken left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

In addition, I'm not sure how important a use case it is for users to be able to call run manually. The runtime knows when to do that, but otherwise it seems very dangerous. But sounds good to allow it in theory as in this PR.

Instead allow folks to export it via EXPORTED_RUNTIME_METHODS, just
other similar functions such as `abort`.

See #9334 and 4ccf542
@sbc100
sbc100 force-pushed the remove_run_export branch from 0b67032 to e076ed4 Compare July 7, 2022 18:07
@sbc100
sbc100 enabled auto-merge (squash) July 7, 2022 18:08
@sbc100
sbc100 merged commit cbcda4b into main Jul 7, 2022
@sbc100
sbc100 deleted the remove_run_export branch July 7, 2022 21:55
xbcnn pushed a commit to xbcnn/emscripten that referenced this pull request Jul 22, 2022
Instead allow folks to export it via EXPORTED_RUNTIME_METHODS, just
other similar functions such as `abort`.

See emscripten-core#9334 and 4ccf542
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.

2 participants