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
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.}

View File

@@ -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 -------------------------------------------