Former-commit-id: e7d0ff27193defd870ae29bd9b4d4c2044488eac
This commit is contained in:
Jarred Sumner
2021-08-03 16:01:15 -07:00
parent 3ee7467d66
commit 3b684308c3
15 changed files with 334 additions and 193 deletions

View File

@@ -30,8 +30,6 @@ pub fn panic(msg: []const u8, error_return_trace: ?*std.builtin.StackTrace) nore
}
}
pub const JSGlobalObject = struct {};
const constStrToU8 = allocators.constStrToU8;
pub fn main() anyerror!void {
// The memory allocator makes a massive difference.
@@ -386,7 +384,10 @@ pub const Cli = struct {
// .entry_point,
// );
try vm.loadEntryPoint(vm.bundler.options.entry_points[0]);
var promise = try vm.loadEntryPoint(vm.bundler.options.entry_points[0]);
if (promise.status(vm.global.vm()) == js.JSPromise.Status.Rejected) {
vm.defaultRejectionHandler(promise.result(vm.global.vm()));
}
}
};