Title: [WASM] pyEval does not return JsValue · Issue #1612 · RustPython/RustPython · GitHub
Open Graph Title: [WASM] pyEval does not return JsValue · Issue #1612 · RustPython/RustPython
X Title: [WASM] pyEval does not return JsValue · Issue #1612 · RustPython/RustPython
Description: Description pyEval should return the JsValue, as the run function of wasmvm proposed, fn run(&self, source: &str, mode: compile::Mode) -> Result
Open Graph Description: Description pyEval should return the JsValue, as the run function of wasmvm proposed, fn run(&self, source: &str, mode: compile::Mode) -> Result
X Description: Description pyEval should return the JsValue, as the run function of wasmvm proposed, fn run(&self, source: &str, mode: compile::Mode) -> Result<JsValue, JsValue>, but there is som...
Opengraph URL: https://github.com/RustPython/RustPython/issues/1612
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[WASM] pyEval does not return JsValue","articleBody":"# Description\r\npyEval should return the `JsValue`, as the run function of wasmvm proposed, \r\n```fn run(\u0026self, source: \u0026str, mode: compile::Mode) -\u003e Result\u003cJsValue, JsValue\u003e```, \r\nbut there is something missing such that the return value is always `undefined`.\r\n\r\n## Expected Result\r\n```\r\n\u003e\u003e let a = rp.pyEval(\"1 + 1\")\r\n← undefined\r\n\u003e\u003e a\r\n← 2\r\n```\r\n\r\n## Actual Result\r\n```\r\n\u003e\u003e let a = rp.pyEval(\"1 + 1\")\r\n← undefined\r\n\u003e\u003e a\r\n← undefined\r\n```\r\n","author":{"url":"https://github.com/yanganto","@type":"Person","name":"yanganto"},"datePublished":"2019-11-26T04:09:25.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/1612/RustPython/issues/1612"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:bde840cc-1db3-f621-5eec-031d504e32a3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A048:162C5F:2E2E548:4173A14:6A590E45 |
| html-safe-nonce | 92398da55042a62a7637ef8037a00512d8493dc2a1036cb7bfffdfe74087fee9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMDQ4OjE2MkM1RjoyRTJFNTQ4OjQxNzNBMTQ6NkE1OTBFNDUiLCJ2aXNpdG9yX2lkIjoiNDE5MDUxNzE1MDU5NDE3NDUzMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 55db72007270d33827527bf0d7c541e45f5e509504d7fe39889a73202078ca4c |
| hovercard-subject-tag | issue:528474700 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/RustPython/RustPython/1612/issue_layout |
| twitter:image | https://opengraph.githubassets.com/93465ec0a3cae4319d9fb44d77996208701e3a173441e983233da4a460cf6668/RustPython/RustPython/issues/1612 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/93465ec0a3cae4319d9fb44d77996208701e3a173441e983233da4a460cf6668/RustPython/RustPython/issues/1612 |
| og:image:alt | Description pyEval should return the JsValue, as the run function of wasmvm proposed, fn run(&self, source: &str, mode: compile::Mode) -> Result |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | yanganto |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4eb8ea312922ccce63e833964f9606d971cffb2d5b6c10a62c4a7dcc48d826e2 |
| turbo-cache-control | no-preview |
| go-import | github.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git |
| octolytics-dimension-user_id | 39710557 |
| octolytics-dimension-user_login | RustPython |
| octolytics-dimension-repository_id | 135201145 |
| octolytics-dimension-repository_nwo | RustPython/RustPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 135201145 |
| octolytics-dimension-repository_network_root_nwo | RustPython/RustPython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 886a6c6fbce3d3caad5b3b995ef09ff6ca23f10e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width