Skip to content

[Modules]: Create a setting for module authors to limit the Source evaluation mode #57

Open
@Anonymxtrix

Description

@Anonymxtrix

Source Module evaluationMode setting

After looking at the developer documentation for Source Module rpc, I realised that it may be essential for Source Module developers to have some control over the mode of evaluation by the Source Interpreter js-slang.

I'm proposing a field evaluationMode in modules.json that can be set to either all, interpreter or transpiler which will be checked in the module loader of js-slang which will either continue the module loading process or throw a corresponding error message.

ie.

{
  "rpc": {
    "evaluationMode": "all",
    "tabs": [ "Rpc" ]
  }
}

The updating of the evaluationMode field can be added into the Source Module command- line application.

Checklist

  • I checked the requested feature does not already exist
  • I checked to make sure that this issue has not already been filed

Metadata

Metadata

Assignees

No one assigned

    Labels

    Enhancement[Category] New feature requestproposalTentative suggestion inviting discussion

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions