Skip to content

The deno core exposes an op_panic in the base runtime which can force a panic in the runtime's containing thread #174

@rscarson

Description

@rscarson

A new review of available-by-default ops has revealed Deno.core.ops.op_panic, which when called forces a panic in the thread containing the runtime.

This can be fixed by stubbing out the panic op:

Deno.core.ops.op_panic = (msg) => { throw new Error(msg) };

Other ops, such as op_read can only be used on resource-ids loaded into a table on the rust side, and therefore do not violate sandboxing

Affects 0.4.x up-to and including 0.6.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions