mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-13 06:43:52 +00:00
Merge pull request #4256 from yglukhov/randomize-fix
Time has now reference semantics on js
This commit is contained in:
@@ -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 -------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user