import { run } from 'mine-jsjs'
run(
{
"type": "Program",
"start": 0,
"end": 26,
"body": [
{
"type": "ExpressionStatement",
"start": 0,
"end": 26,
"expression": {
"type": "CallExpression",
"start": 0,
"end": 26,
"callee": {
"type": "MemberExpression",
"start": 0,
"end": 11,
"object": {
"type": "Identifier",
"start": 0,
"end": 7,
"name": "console"
},
"property": {
"type": "Identifier",
"start": 8,
"end": 11,
"name": "log"
},
"computed": false
},
"arguments": [
{
"type": "Literal",
"start": 12,
"end": 25,
"value": "hello world!",
"raw": "'hello world!'"
}
]
}
}
],
"sourceType": "module"
}
)
import { run } from 'mine-jsjs'
const str = 'hello'
run(`console.log(hello + ' world')`, { hello: str })