Skip to content

Proving soundness #654

@sagudev

Description

@sagudev

So I was thinking how can we prove that what we do is actually correct (mainly we are interested in correctness of high-level wrappers so mozjs).

Ideally we would just run MIRI but AFAIK we cannot (yet: rust-lang/miri#11) because FFI and other syscalls. So my idea is to write dummy mozjs-sys that can be used in place of real mozjs, that would emulate context/rooting/tracing/handles and GC (we do not need to do actual js execution). This way I think it's feasible to run MIRI on subset of mozjs (and it's test/examples).

Side-quest: How hard would it be to use pure rust JS engine for this (boa)? Probably not much and we could cover more, but SM works in a uniqe way.

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