Commit 2ce0f90
Fix two deprecation warnings (#456)
* Fix deprecation warning, use Nan::TryCatch.
Fixes the following compiler warning:
Release/obj.target/appmetrics/geni/appmetrics.cpp: In function 'void
emitMessage(uv_async_t*, int)':
Release/obj.target/appmetrics/geni/appmetrics.cpp:396:18: warning:
'v8::TryCatch::TryCatch()' is deprecated: Use isolate version
[-Wdeprecated-declarations]
TryCatch try_catch;
* Fix deprecation warning, use Nan::CallAsFunction().
Fixes the following compiler warning:
Release/obj.target/appmetrics/geni/appmetrics.cpp: In function
'v8::Local<v8::Object> getRequireCache(v8::Local<v8::Object>)':
Release/obj.target/appmetrics/geni/appmetrics.cpp:597:151: warning:
'v8::Local<v8::Value>
v8::Object::CallAsFunction(v8::Local<v8::Value>, int,
v8::Local<v8::Value>*)' is deprecated: Use maybe version
[-Wdeprecated-declarations]
Local<Value> m =
module->Get(Nan::New<String>("require").ToLocalChecked())->ToObject()->CallAsFunction(Nan::GetCurrentContext()->Global(),
1, args);1 parent 68ff88b commit 2ce0f90
1 file changed
+12
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
393 | 393 | | |
394 | 394 | | |
395 | 395 | | |
396 | | - | |
| 396 | + | |
397 | 397 | | |
398 | 398 | | |
399 | 399 | | |
| |||
404 | 404 | | |
405 | 405 | | |
406 | 406 | | |
407 | | - | |
408 | | - | |
409 | | - | |
410 | | - | |
411 | | - | |
| 407 | + | |
412 | 408 | | |
413 | 409 | | |
414 | 410 | | |
| |||
594 | 590 | | |
595 | 591 | | |
596 | 592 | | |
597 | | - | |
598 | | - | |
599 | | - | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
600 | 603 | | |
601 | 604 | | |
602 | 605 | | |
| |||
0 commit comments