spicy-wolf / Choices

A Story, and Your Choices
https://storychoices.vercel.app/
GNU General Public License v3.0
0 stars 0 forks source link

add JavaScript dynamic execution logic #102

Open spicy-wolf opened 1 year ago

spicy-wolf commented 1 year ago

example => https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/Function

let func = new Function("global", "fetch", "window", "return 1 + 1")
func({}, null, null)

this can remove default fetch and window.

spicy-wolf commented 1 year ago

investigate https://jsonlogic.com/

spicy-wolf commented 11 months ago

how does VS code web dynamic load extension

see

https://github.com/microsoft/vscode/blob/7c342a3ed0011d7f1f31410cb3a894147081503d/src/vs/workbench/api/worker/extHostExtensionService.ts#L85-L87

image