Skip to content

Instantly share code, notes, and snippets.

@bmizerany
Created May 24, 2010 01:56
Show Gist options
  • Save bmizerany/411436 to your computer and use it in GitHub Desktop.
Save bmizerany/411436 to your computer and use it in GitHub Desktop.
#define _PROTO_DATA_SYMBOL String::NewSymbol("data")
....
Handle<String> data = args.This()->Get(_PROTO_DATA_SYMBOL);
Handle<Value> temp = String::Concat(data, String::New("foobar"));
args.This()->Set(_PROTO_DATA_SYMBOL, temp);
[1/2] cxx: proto.cc -> build/default/proto_1.o
/usr/local/include/node/v8.h: In constructor ‘v8::Handle<T>::Handle(v8::Handle<S>) [with S = v8::Value, T = v8::String]’:
../proto.cc:61: instantiated from here
/usr/local/include/node/v8.h:216: error: invalid conversion from ‘v8::Value*’ to ‘v8::String*’
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment