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
For example, a generator function like:
function* generator(i) { yield i yield i + 1 yield i + 2 }
then eval on context to get Value instance in C++ ... :
Value
Value generatorFunc = context.eval("generator"); Value generator = ((std::function<Value(int)>) generatorFunc)(10);
I've tried:
Value nextFunc = generator["next"]; Value result = ((std::function<Value(void)>) nextFunc)();
but got a TypeError: not a generator.
TypeError: not a generator
The text was updated successfully, but these errors were encountered:
No branches or pull requests
For example, a generator function like:
then eval on context to get
Value
instance in C++ ... :I've tried:
but got a
TypeError: not a generator
.The text was updated successfully, but these errors were encountered: