Skip to content

Instantly share code, notes, and snippets.

Created November 11, 2011 23:57
Show Gist options
  • Save anonymous/1359726 to your computer and use it in GitHub Desktop.
Save anonymous/1359726 to your computer and use it in GitHub Desktop.
[exec] src/native/V8Util.cpp: In static member function 'static bool titanium::V8Util::isValueNaN(v8::Handle<v8::Value>)':
[exec] src/native/V8Util.cpp:200: error: no match for 'operator=' in 'titanium::isNaN = v8::Context::GetCurrent().v8::Local<v8::Context>::<anonymous>.v8::Handle<T>::operator-> [with T = v8::Context]()->v8::Context::Global().v8::Local<v8::Object>::<anonymous>.v8::Handle<T>::operator-> [with T = v8::Object]()->v8::Object::Get(v8::Handle<v8::Value>(v8::String::New(((const char*)"isNaN"), -0x00000000000000001).v8::Local<v8::String>::<anonymous>))'
[exec] /Users/ayeung/titanium/titanium_mobile/dist/android/libv8/3.6.4/release/include/v8.h:315: note: candidates are: v8::Persistent<v8::Function>& v8::Persistent<v8::Function>::operator=(const v8::Persistent<v8::Function>&)
[exec] make: *** [/Users/ayeung/titanium/titanium_mobile/android/runtime/v8/obj/local/armeabi/objs/kroll-v8-device/V8Util.o] Error 1
static Persistent<Function> isNaN;
bool V8Util::isValueNaN(Handle<Value> value)
{
if (isNaN == Null()) {
isNaN = Context::GetCurrent()->Global()->Get(String::New("isNaN"));
}
Handle<Value> args[] = { value };
return isNaN->Call(Handle<Object> (), 1, args)->BooleanValue();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment