Skip to content

Commit 8cc427c

Browse files
Alexander VakrilovSvetoslavTsenov
authored andcommitted
chore: Fix TS transpile error with 2.9 (NativeScript#5906)
1 parent 9308bab commit 8cc427c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tns-core-modules/globals/globals.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ export function Deprecated(target: Object, key?: string | symbol, descriptor?: a
206206
var originalMethod = descriptor.value;
207207

208208
descriptor.value = function (...args: any[]) {
209-
console.log(`${key} is deprecated`);
209+
console.log(`${key.toString()} is deprecated`);
210210

211211
return originalMethod.apply(this, args);
212212
}
@@ -225,7 +225,7 @@ export function Experimental(target: Object, key?: string | symbol, descriptor?:
225225
var originalMethod = descriptor.value;
226226

227227
descriptor.value = function (...args: any[]) {
228-
console.log(`${key} is experimental`);
228+
console.log(`${key.toString()} is experimental`);
229229

230230
return originalMethod.apply(this, args);
231231
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy