mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 04:41:36 +08:00
Add a flag we can use to skip string template calcs in release
This commit is contained in:
@ -29,6 +29,8 @@ export var test_DummyTestForSnippetOnly2 = function () {
|
||||
// >> trace-message
|
||||
trace.setCategories(trace.categories.Debug);
|
||||
trace.enable();
|
||||
trace.write("My Debug Message", trace.categories.Debug);
|
||||
if (trace.enabled) {
|
||||
trace.write("My Debug Message", trace.categories.Debug);
|
||||
}
|
||||
// << trace-message
|
||||
}
|
Reference in New Issue
Block a user