Update src/virtual-machine.js

Co-Authored-By: mzgoddard <mzgoddard@gmail.com>
This commit is contained in:
Karishma Chadha 2018-12-20 14:11:58 -05:00 committed by GitHub
parent 5593b28984
commit f1a24e3296
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -302,7 +302,7 @@ class VirtualMachine extends EventEmitter {
const sb1 = new SB1File(input);
const json = sb1.json;
json.projectVersion = 2;
return [json, sb1.zip];
return Promise.resolve([json, sb1.zip]);
} catch (sb1Error) {
if (sb1Error instanceof ValidationError) {
// The input does not validate as a Scratch 1 file.