We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm not sure if I'm doing something wrong, or whether this is not supported.
I expected the value of a inside resolve to be the location.
a
resolve
location
import interpreter from '/lib/shadow/vendor/interpreter.mjs' window.log = function (result) { console.log({result}) } var myCode = ` function resolve ({a}) { return a; }; log(resolve({a: url})); ` var initFunc = function (interpreter, globalObject) { interpreter.setProperty(globalObject, 'url', String(location)) var wrapper = function log(text) { return window.log(text) } interpreter.setProperty(globalObject, 'log', interpreter.createNativeFunction(wrapper)) } var myInterpreter = new interpreter(myCode, initFunc) myInterpreter.run()
The text was updated successfully, but these errors were encountered:
Destructuring is a feature of ES6: http://es6-features.org/#ParameterContextMatching
JS-Interpreter is ES5 only: #186
Sorry, something went wrong.
Got it. Thanks Neil.
Congrats on the great code here and all the work that went into it.
Very impressive!
No branches or pull requests
I'm not sure if I'm doing something wrong, or whether this is not supported.
I expected the value of
a
insideresolve
to be thelocation
.The text was updated successfully, but these errors were encountered: