mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 06:52:40 -05:00
Move comments
This commit is contained in:
parent
0848a1a4ca
commit
9b1aa7d7c7
1 changed files with 7 additions and 2 deletions
|
@ -212,7 +212,9 @@ class VirtualMachine extends EventEmitter {
|
||||||
}
|
}
|
||||||
|
|
||||||
const validationPromise = new Promise((resolve, reject) => {
|
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) {
|
if (error) {
|
||||||
reject(error);
|
reject(error);
|
||||||
}
|
}
|
||||||
|
@ -398,7 +400,10 @@ class VirtualMachine extends EventEmitter {
|
||||||
}
|
}
|
||||||
|
|
||||||
const validationPromise = new Promise((resolve, reject) => {
|
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) {
|
if (error) {
|
||||||
reject(error);
|
reject(error);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue