expression-sandbox icon indicating copy to clipboard operation
expression-sandbox copied to clipboard

A small tool for evaluating JavaScript code in a secure sandbox, for Node.js or the modern browser.

Results 6 expression-sandbox issues
Sort by recently updated
recently updated
newest added

I have a fairly bizarre use-case, but it's causing a problem. I have a section of code that mimics inheriting from Function, which involves creating a mock "prototype," and creating...

Code in Node.js v8.7.0: ```JavaScript this.name = 'AssertionError [ERR_ASSERTION]'; ``` https://github.com/nodejs/node/blob/dc4f1b981a888a2f39219d384b6d3eb593203383/lib/internal/errors.js#L53 The error message is: `TypeError: Cannot assign to read only property 'name' of object 'Error: false == true'` Any...

Here's a more complete list of standard constructors for you: ```JavaScript const constructors = [ Array, ArrayBuffer, Boolean, Date, Error, EvalError, Float32Array, Float64Array, Function, Int8Array, Int16Array, Int32Array, Map, Number, Object,...

Obviously, we can't solve this. But we do need some way to interrupt things like ```while(1)``` I think the only way around this is to use an iframe or webworker......

I'm trying to provide a write function to my sandbox. The write command in itself is pretty complex and written in TypeScript, so I won't post it. The sandboxed code...

I'd like to use an `expression-sandbox` for implementing secured mode in [Klipse](https://github.com/viebel/klipse). I have tried the naive approach suggested in https://blog.risingstack.com/writing-a-javascript-framework-sandboxed-code-evaluation/ Do you think that `expression-sandbox` could be helpful? I...