Merge pull request #4256 from yglukhov/randomize-fix
Time has now reference semantics on js
This commit is contained in:
commit
a7ff60bf73
2 changed files with 3 additions and 2 deletions
|
|
@ -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.}
|
||||
|
|
|
|||
|
|
@ -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 -------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue