-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
feat(hog): importing modules in hog #25796
Conversation
Size Change: 0 B Total Size: 1.15 MB ℹ️ View Unchanged
|
ddb405d
to
e10393e
Compare
📸 UI snapshots have been updated1 snapshot changes in total. 0 added, 1 modified, 0 deleted:
Triggered by this commit. |
📸 UI snapshots have been updated3 snapshot changes in total. 0 added, 3 modified, 0 deleted:
Triggered by this commit. |
📸 UI snapshots have been updated3 snapshot changes in total. 0 added, 3 modified, 0 deleted:
Triggered by this commit. |
📸 UI snapshots have been updated3 snapshot changes in total. 0 added, 3 modified, 0 deleted:
Triggered by this commit. |
📸 UI snapshots have been updated2 snapshot changes in total. 0 added, 2 modified, 0 deleted:
Triggered by this commit. |
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Problem
Splitting up #25719
Changes
bytecode
to the HogVM, you can now pass an object ofbytecodes
({filename: {bytecode, globals}}
), and import them withimport('filename')
from your code.return
ed at the end of the script is the return value ofimport()
root
.importBytecode: (module: string) => BytecodeEntry
callback option to dynamically load them.Code like this works now:
This will be used in the messaging product to call the right
sendEmail
function.How did you test this code?
Updated/added tests.