'v8::Value::ToNumber': was declared deprecated
问题 I'm trying to access a known object and get one of its properties as a Number Unfortunately, the following code... Isolate *isolate = args.GetIsolate(); Local<Object> opts = args[0]->ToObject(); Local<Number> mode = opts->Get(String::NewFromUtf8(isolate, "mode"))->ToNumber(); is giving the following warning: warning C4996: 'v8::Value::ToNumber': was declared deprecated ....node-gyp\8.5.0\include\node\v8.h(9578): note: see declaration of 'v8::Value::ToNumber' In the v8.h I noticed the comment