Merge pull request from kchadha/list-typed-variable

List typed variable
This commit is contained in:
Paul Kaplan 2017-11-15 12:48:56 -05:00 committed by GitHub
commit 1e27d21b15
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 194 additions and 105 deletions
src/engine

View file

@ -157,7 +157,7 @@ const execute = function (sequencer, thread) {
// Add all fields on this block to the argValues.
for (const fieldName in fields) {
if (!fields.hasOwnProperty(fieldName)) continue;
if (fieldName === 'VARIABLE') {
if (fieldName === 'VARIABLE' || fieldName === 'LIST') {
argValues[fieldName] = fields[fieldName].id;
} else {
argValues[fieldName] = fields[fieldName].value;