Merge pull request #4256 from yglukhov/randomize-fix

Time has now reference semantics on js
This commit is contained in:
Andreas Rumpf 2016-06-01 19:57:04 +02:00
commit a7ff60bf73
2 changed files with 3 additions and 2 deletions

View file

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

View file

@ -226,7 +226,7 @@ proc jsTests(r: var TResults, cat: Category, options: string) =
"varres/tvartup", "misc/tints", "misc/tunsignedinc"]: "varres/tvartup", "misc/tints", "misc/tunsignedinc"]:
test "tests/" & testfile & ".nim" 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" test "lib/" & testfile & ".nim"
# ------------------------- manyloc ------------------------------------------- # ------------------------- manyloc -------------------------------------------