Move comments

This commit is contained in:
Karishma Chadha 2018-05-04 09:19:41 -04:00
parent 0848a1a4ca
commit 9b1aa7d7c7

View file

@ -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);
}