Skip to content

[WASM] pyEval does not return JsValue #1612

@yanganto

Description

@yanganto

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 something missing such that the return value is always undefined.

Expected Result

>> let a = rp.pyEval("1 + 1")
← undefined
>> a
← 2

Actual Result

>> let a = rp.pyEval("1 + 1")
← undefined
>> a
← undefined

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions