Skip to content
Permalink
Browse files

add linux binaryand change import to include

  • Loading branch information...
rogchap committed Sep 3, 2019
1 parent dfaac73 commit 299a96bff79f3ff74d9de7e45f0c99fe947ea516
Showing with 5 additions and 10 deletions.
  1. +2 −2 .gitignore
  2. +2 −2 context.go
  3. +0 −2 deps/linux-x86_64/.empty
  4. BIN deps/linux-x86_64/libv8.a
  5. +0 −2 v8go.cc
  6. +1 −1 value.go
  7. +0 −1 value_test.go
@@ -5,5 +5,5 @@
.cipd
.gclient_entries

# ignore libs for now
*.a
# ignore darwin libs for now
deps/darwin-x86_64/libv8.a
@@ -1,7 +1,7 @@
package v8go

// #import <stdlib.h>
// #import "v8go.h"
// #include <stdlib.h>
// #include "v8go.h"
import "C"
import (
"fmt"

This file was deleted.

Binary file not shown.
@@ -144,13 +144,11 @@ RtnValue RunScript(ContextPtr ctx_ptr, const char* source, const char* origin) {
ScriptOrigin script_origin(ogn);
MaybeLocal<Script> script = Script::Compile(local_ctx, src, &script_origin);
if (script.IsEmpty()) {
assert(try_catch.HasCaught());
rtn.error = ExceptionError(try_catch, iso, local_ctx);
return rtn;
}
MaybeLocal<v8::Value> result = script.ToLocalChecked()->Run(local_ctx);
if (result.IsEmpty()) {
assert(try_catch.HasCaught());
rtn.error = ExceptionError(try_catch, iso, local_ctx);
return rtn;
}
@@ -1,6 +1,6 @@
package v8go

// #import "v8go.h"
// #include "v8go.h"
import "C"
import "runtime"

@@ -17,7 +17,6 @@ func TestValueString(t *testing.T) {
{"Number", `13 * 2`, "26"},
{"String", `"string"`, "string"},
{"Object", `let obj = {}; obj`, "[object Object]"},
{"Date", `new Date("Sun Sep 01 2019 17:11:06 GMT+1000 (AEST)")`, "Sun Sep 01 2019 17:11:06 GMT+1000 (AEST)"},
{"Function", `let fn = function(){}; fn`, "function(){}"},
}

0 comments on commit 299a96b

Please sign in to comment.
You can’t perform that action at this time.