mirror of
https://github.com/denoland/deno.git
synced 2025-10-02 07:01:16 +00:00
Add ability to link to v8_libbase.
This commit is contained in:
parent
168cc755cf
commit
ec65717c59
3 changed files with 25 additions and 17 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue