From 9b1aa7d7c73091ae66e1082b595a41e518a99b16 Mon Sep 17 00:00:00 2001 From: Karishma Chadha Date: Fri, 4 May 2018 09:19:41 -0400 Subject: [PATCH] Move comments --- src/virtual-machine.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/virtual-machine.js b/src/virtual-machine.js index 43918199b..d63e34088 100644 --- a/src/virtual-machine.js +++ b/src/virtual-machine.js @@ -212,7 +212,9 @@ class VirtualMachine extends EventEmitter { } const validationPromise = new Promise((resolve, reject) => { - validate(input, false /* this is not a single sprite */, (error, res) => { + // The second argument of false below indicates to the validator that the + // input should be parsed/validated as an entire project (and not a single sprite) + validate(input, false, (error, res) => { if (error) { reject(error); } @@ -398,7 +400,10 @@ class VirtualMachine extends EventEmitter { } const validationPromise = new Promise((resolve, reject) => { - validate(input, true /* single sprite */, (error, res) => { + // The second argument of true below indicates to the parser/validator + // that the given input should be treated as a single sprite and not + // an entire project + validate(input, true, (error, res) => { if (error) { reject(error); }