Skip to content

Commit 6600ae8

Browse files
committed
browser: disable assertions when debug mode is off
1 parent 2c67ff2 commit 6600ae8

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
error handling
2+
assert: aBlock description: aStringOrBlock
3+
4+
SwaLint debug ifFalse: [^ self].
5+
^ super assert: aBlock description: aStringOrBlock

packages/SwaLintBrowser.package/SL2TestMapper.class/methodProperties.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"class" : {
33
"mapTestsFrom:" : "ct 12/12/2024 04:14" },
44
"instance" : {
5+
"assert:description:" : "ct 12/20/2024 03:32",
56
"basicMakeTestFrom:" : "ct 12/18/2024 00:01",
67
"buildCategoryTree:" : "ct 12/18/2024 22:03",
78
"buildTest:" : "ct 12/18/2024 00:02",

0 commit comments

Comments
 (0)