Time has now reference semantics on js

This commit is contained in:
Yuriy Glukhov 2016-06-01 18:46:58 +03:00
commit 7389662809
2 changed files with 3 additions and 2 deletions

View file

@ -95,7 +95,8 @@ elif defined(windows):
elif defined(JS):
type
Time* {.importc.} = object
Time* = ref TimeObj
TimeObj {.importc.} = object
getDay: proc (): int {.tags: [], raises: [], benign.}
getFullYear: proc (): int {.tags: [], raises: [], benign.}
getHours: proc (): int {.tags: [], raises: [], benign.}