Skip to content
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

Fix rendering engine usage within a fastboot sandbox #19124

Merged
merged 2 commits into from
Sep 3, 2020
Merged

Conversation

rwjblue
Copy link
Member

@rwjblue rwjblue commented Sep 2, 2020

Brings the test from #19123 and the fixes from glimmerjs/glimmer-vm#1155 to the beta branch.

Fixes glimmerjs/glimmer-vm#1141
Fixes #19113

@rwjblue rwjblue added the Bug label Sep 2, 2020
Prior to this we were simulating FastBoot in a non-isolated VM context.
That meant that the running Node context was available within rendering
attempts. However, when ran with "real" FastBoot that is **not** the
case. In the real FastBoot environment, we create an isolated `vm`
context and evaluate both Ember and the application within that context.
This ensures that the running context does not have access to arbitrary
Node-land APIs (e.g. `require`).

(cherry picked from commit f9ef7dc)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant