mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 19:26:42 +08:00
Fix a bug in the file-system module for iOS (NSDate is automatically marshalled to JS Date).
This commit is contained in:
@ -159,7 +159,8 @@ export class File extends FileSystemEntity {
|
||||
}
|
||||
|
||||
get isLocked(): boolean {
|
||||
return this[fileLockedProperty];
|
||||
// !! is a boolean conversion/cast, handling undefined as well
|
||||
return !!this[fileLockedProperty];
|
||||
}
|
||||
|
||||
public readText(encoding?: string): Promise<string> {
|
||||
|
Reference in New Issue
Block a user