Is there a way to modify the sandbox used to load modules without modifying boot.js?

21 views
Skip to first unread message

Jed Carty

unread,
Aug 24, 2018, 11:48:47 AM8/24/18
to TiddlyWikiDev
The TOML library that I would like to use needs the Date object, it looks like it isn't available in the default sandbox used to evaluate modules. A quick look at the code makes it look like it is possible to define a custom sandbox environment but I don't see how to actually do that.

I think that there may be security concerns for allowing the Date object to be accessible in the sandboxed modules so I would rather find a way to make a custom sandbox than to make a pull request to change the available modules.

I feel like I am missing something very simple here but I have no idea what.
Reply all
Reply to author
Forward
0 new messages