/Extension-JSSupport

JavaScript Extension Support

Primary LanguageSwiftMIT LicenseMIT

Caution

This repo is archived.
JSSupport will be built-in and will not require a extension to run.
See: AuroraEditor/AuroraEditor#641


This is a example for JSSupport in Aurora Editor. Please note that this code is subject to change and may not be the final version.

To run the "tests" you can run:

swift JSSupport.swift

It should print:

API Test Message: AuroraEditor.api using evaluate...
API Test Message: api using respond()
API Test:
 Function: func
 Parameters: ["some": value, "dict": ionary]
JS Error: TypeError: undefined is not an object (evaluating 'this.should.fail')
Tests completed succesfully.

This doesn't seem like much, but it's a good start to support JavaScript in Aurora Editor.

If you have any questions, feel free to ask. @0xWDG at Discord.


License

This project is licensed under the MIT License - see the LICENSE.md file for details.