File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -299,19 +299,13 @@ NAN_METHOD(setOption) {
299299 }
300300}
301301
302- // set the property to given value (called from index.js)
302+ // get property
303303NAN_METHOD (getOption) {
304304 if (info.Length () > 0 ) {
305- // Nan::NanScope();
306305 Local<String> value = info[0 ]->ToString ();
307- printf (toStdString (value).c_str ());
308306 std::string property = loaderApi->getProperty (toStdString (value).c_str ());
309- printf (" *** HEADLESS OUTPUT PROPERTY =" );
310- printf (property.c_str ());
311- printf (" ***\n " );
312307 v8::Local<v8::String> v8str = v8::String::NewFromUtf8 (v8::Isolate::GetCurrent (), property.c_str ());
313308 info.GetReturnValue ().Set <v8::String>(v8str);
314- // Nan::NanReturnValue(NanNew<String>(loaderApi->getProperty(toStdString(value).c_str())));
315309 } else {
316310 loaderApi->logMessage (warning, " Incorrect number of parameters passed to getOption" );
317311 }
You can’t perform that action at this time.
0 commit comments