Removing accidentally commited stuff.
This commit is contained in:
parent
50bbbb2e06
commit
92ac417fdf
|
@ -99,14 +99,7 @@ export class IsolatedVM implements VM {
|
||||||
}
|
}
|
||||||
|
|
||||||
withContext<T>(context: Record<string, any>, executeWithContext: () => T) {
|
withContext<T>(context: Record<string, any>, executeWithContext: () => T) {
|
||||||
this.addToContext({
|
this.addToContext(context)
|
||||||
...context,
|
|
||||||
Snippets: {
|
|
||||||
specialFunction: function (special: string) {
|
|
||||||
return "hello world! " + special
|
|
||||||
},
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
return executeWithContext()
|
return executeWithContext()
|
||||||
|
|
Loading…
Reference in New Issue