Skip to content

Instantly share code, notes, and snippets.

@bowrocker
Created February 21, 2020 16:50
Show Gist options
  • Save bowrocker/583e5c8b2febf99cd75a8526c4482578 to your computer and use it in GitHub Desktop.
Save bowrocker/583e5c8b2febf99cd75a8526c4482578 to your computer and use it in GitHub Desktop.
In file included from ../dtrace_provider.cc:1:0:
../dtrace_provider.h:69:48: error: 'Arguments' in namespace 'v8' does not name a type
static v8::Handle<v8::Value> New(const v8::Arguments& args);
^~~~~~~~~
../dtrace_provider.h:70:49: error: 'Arguments' in namespace 'v8' does not name a type
static v8::Handle<v8::Value> Fire(const v8::Arguments& args);
^~~~~~~~~
../dtrace_provider.h:87:48: error: 'Arguments' in namespace 'v8' does not name a type
static v8::Handle<v8::Value> New(const v8::Arguments& args);
^~~~~~~~~
../dtrace_provider.h:88:53: error: 'Arguments' in namespace 'v8' does not name a type
static v8::Handle<v8::Value> AddProbe(const v8::Arguments& args);
^~~~~~~~~
../dtrace_provider.h:89:56: error: 'Arguments' in namespace 'v8' does not name a type
static v8::Handle<v8::Value> RemoveProbe(const v8::Arguments& args);
^~~~~~~~~
../dtrace_provider.h:90:51: error: 'Arguments' in namespace 'v8' does not name a type
static v8::Handle<v8::Value> Enable(const v8::Arguments& args);
^~~~~~~~~
../dtrace_provider.h:91:52: error: 'Arguments' in namespace 'v8' does not name a type
static v8::Handle<v8::Value> Disable(const v8::Arguments& args);
^~~~~~~~~
../dtrace_provider.h:92:49: error: 'Arguments' in namespace 'v8' does not name a type
static v8::Handle<v8::Value> Fire(const v8::Arguments& args);
^~~~~~~~~
../dtrace_provider.cc: In static member function 'static void node::DTraceProvider::Initialize(v8::Handle<v8::Object>)':
../dtrace_provider.cc:23:17: error: 'v8::HandleScope::HandleScope()' is protected within this context
HandleScope scope;
^~~~~
In file included from /home/jonran/.cache/node-gyp/8.17.0/include/node/node.h:63:0,
from ../dtrace_provider.h:1,
from ../dtrace_provider.cc:1:
/home/jonran/.cache/node-gyp/8.17.0/include/node/v8.h:876:13: note: declared protected here
V8_INLINE HandleScope() {}
^~~~~~~~~~~
../dtrace_provider.cc:25:74: error: no matching function for call to 'v8::FunctionTemplate::New(v8::Handle<v8::Value> (&)(const int&))'
Local<FunctionTemplate> t = FunctionTemplate::New(DTraceProvider::New);
^
In file included from /home/jonran/.cache/node-gyp/8.17.0/include/node/node.h:63:0,
from ../dtrace_provider.h:1,
from ../dtrace_provider.cc:1:
/home/jonran/.cache/node-gyp/8.17.0/include/node/v8.h:5495:34: note: candidate: static v8::Local<v8::FunctionTemplate> v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Local<v8::Value>, v8::Local<v8::Signature>, int, v8::ConstructorBehavior)
static Local<FunctionTemplate> New(
^~~
/home/jonran/.cache/node-gyp/8.17.0/include/node/v8.h:5495:34: note: no known conversion for argument 1 from 'v8::Handle<v8::Value>(const int&) {aka v8::Local<v8::Value>(const int&)}' to 'v8::Isolate*'
../dtrace_provider.cc:26:63: error: no matching function for call to 'v8::Persistent<v8::FunctionTemplate>::New(v8::Local<v8::FunctionTemplate>&)'
constructor_template = Persistent<FunctionTemplate>::New(t);
^
In file included from /home/jonran/.cache/node-gyp/8.17.0/include/node/node.h:63:0,
from ../dtrace_provider.h:1,
from ../dtrace_provider.cc:1:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment