refactor: add EmitDeprecationWarning helper (#46879)
* refactor: add EmitDeprecationWarning helper Also switches EmitWarning to using Node's ProcessEmitWarningGeneric Co-authored-by: David Sanders <dsanders11@ucsbalum.com> * chore: use node namespace for function call Co-authored-by: David Sanders <dsanders11@ucsbalum.com> --------- Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: David Sanders <dsanders11@ucsbalum.com>
This commit is contained in:
parent
ee65ab75f5
commit
c24f330b45
5 changed files with 34 additions and 19 deletions
|
@ -286,9 +286,8 @@ v8::Local<v8::Value> NativeImage::GetBitmap(gin::Arguments* args) {
|
|||
|
||||
if (!deprecated_warning_issued) {
|
||||
deprecated_warning_issued = true;
|
||||
util::EmitWarning(isolate_,
|
||||
"getBitmap() is deprecated, use toBitmap() instead.",
|
||||
"DeprecationWarning");
|
||||
util::EmitDeprecationWarning(
|
||||
isolate_, "getBitmap() is deprecated, use toBitmap() instead.");
|
||||
}
|
||||
|
||||
return ToBitmap(args);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue