diff --git a/tns-core-modules/globals/globals.ts b/tns-core-modules/globals/globals.ts index 5b3162d63..15b61854e 100644 --- a/tns-core-modules/globals/globals.ts +++ b/tns-core-modules/globals/globals.ts @@ -206,7 +206,7 @@ export function Deprecated(target: Object, key?: string | symbol, descriptor?: a var originalMethod = descriptor.value; descriptor.value = function (...args: any[]) { - console.log(`${key} is deprecated`); + console.log(`${key.toString()} is deprecated`); return originalMethod.apply(this, args); } @@ -225,7 +225,7 @@ export function Experimental(target: Object, key?: string | symbol, descriptor?: var originalMethod = descriptor.value; descriptor.value = function (...args: any[]) { - console.log(`${key} is experimental`); + console.log(`${key.toString()} is experimental`); return originalMethod.apply(this, args); }