When setting a scope's argument, convert the list to a sequence if it's not
already.
This commit is contained in:
parent
7ffe0e1539
commit
bcfd6d1db9
1 changed files with 4 additions and 2 deletions
|
|
@ -141,8 +141,10 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
void set_args(const value_t& _args) {
|
void set_args(const value_t& _args) {
|
||||||
assert(_args.is_sequence());
|
if (_args.is_sequence())
|
||||||
args = _args;
|
args = _args;
|
||||||
|
else
|
||||||
|
args = _args.to_sequence();
|
||||||
}
|
}
|
||||||
value_t& value() {
|
value_t& value() {
|
||||||
assert(args.is_null() || args.is_sequence());
|
assert(args.is_null() || args.is_sequence());
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue