Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/pure/includes/osenv.nim
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ when defined(windows) and not defined(nimscript):

else:
const
useNSGetEnviron = (defined(macosx) and not defined(ios)) or defined(nimscript)
useNSGetEnviron = (defined(macosx) and not defined(ios) and not defined(emscripten)) or defined(nimscript)

when useNSGetEnviron:
# From the manual:
Expand Down
2 changes: 1 addition & 1 deletion lib/system/timers.nim
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ when defined(windows):

result = Nanos(float64(a.int64 - b.int64) * performanceCounterRate)

elif defined(macosx):
elif defined(macosx) and not defined(emscripten):
type
MachTimebaseInfoData {.pure, final,
importc: "mach_timebase_info_data_t",
Expand Down
2 changes: 1 addition & 1 deletion testament/htmlgen.nim
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ proc generateTestResultPanelPartial(outfile: File, testResultRow: JsonNode) =
trId, name, target, category, action, resultDescription,
timestamp, result, resultSign, panelCtxClass, textCtxClass, bgCtxClass
)
if expected.isNilOrWhitespace() and gotten.isNilOrWhitespace():
if expected.isEmptyOrWhitespace() and gotten.isEmptyOrWhitespace():
outfile.generateHtmlTestresultOutputNone()
else:
outfile.generateHtmlTestresultOutputDetails(
Expand Down
9 changes: 9 additions & 0 deletions tests/system/tsystem_misc.nim
Original file line number Diff line number Diff line change
Expand Up @@ -184,3 +184,12 @@ proc testMinMax(a,b: float32) =

testMinMax(0.0, NaN)
testMinMax(NaN, 0.0)


block:
type Foo = enum
k1, k2
var
a = {k1}
b = {k1,k2}
doAssert a < b