Add ability to link to v8_libbase.

This commit is contained in:
Ryan Dahl 2018-06-14 00:55:40 +02:00
parent 168cc755cf
commit ec65717c59
3 changed files with 25 additions and 17 deletions

View file

@ -1,11 +1,11 @@
// Copyright 2018 Ryan Dahl <ry@tinyclouds.org>
// All rights reserved. MIT License.
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string>
#include "v8/src/base/logging.h"
#include "./msg.pb.h"
#include "include/deno.h"
@ -20,7 +20,7 @@ void MessagesFromJS(Deno* d, const char* channel, deno_buf buf) {
response.set_start_cwd(cwd);
std::string output;
assert(response.SerializeToString(&output) == true);
CHECK(response.SerializeToString(&output));
auto bufout = deno_buf{output.c_str(), output.length()};
deno_set_response(d, bufout);