Created
May 24, 2010 01:56
-
-
Save bmizerany/411436 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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