diff options
-rw-r--r-- | lib/pure/times.nim | 3 | ||||
-rw-r--r-- | tests/testament/categories.nim | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/pure/times.nim b/lib/pure/times.nim index f9d341e32..ac8dc93ad 100644 --- a/lib/pure/times.nim +++ b/lib/pure/times.nim @@ -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.} diff --git a/tests/testament/categories.nim b/tests/testament/categories.nim index cf09aaae0..125643d5a 100644 --- a/tests/testament/categories.nim +++ b/tests/testament/categories.nim @@ -226,7 +226,7 @@ proc jsTests(r: var TResults, cat: Category, options: string) = "varres/tvartup", "misc/tints", "misc/tunsignedinc"]: test "tests/" & testfile & ".nim" - for testfile in ["pure/strutils", "pure/json"]: + for testfile in ["pure/strutils", "pure/json", "pure/random", "pure/times"]: test "lib/" & testfile & ".nim" # ------------------------- manyloc ------------------------------------------- |