File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 11/*
2- * Copyright (C) 2018 Apple Inc. All rights reserved.
2+ * Copyright (C) 2018-2025 Apple Inc. All rights reserved.
33 *
44 * Redistribution and use in source and binary forms, with or without
55 * modification, are permitted provided that the following conditions
@@ -27,10 +27,10 @@ const isInBrowser = false;
2727if ( typeof console == "undefined" )
2828 console = { } ;
2929
30- console . debug ??= ( ...args ) => console . log ( "Debug:" , ... args ) ;
30+ console . debug ??= ( ...args ) => printErr ( "Debug: " + args . join ( " " ) ) ;
3131console . log ??= ( ...args ) => print ( args . join ( " " ) ) ;
32- console . warn ??= ( ...args ) => console . log ( "Warn:" , ... args ) ;
33- console . error ??= ( ...args ) => console . log ( "Error:" , ... args ) ;
32+ console . warn ??= ( ...args ) => printErr ( "Warn: " + args . join ( " " ) ) ;
33+ console . error ??= ( ...args ) => printErr ( "Error: " + args . join ( " " ) ) ;
3434console . assert ??= ( condition , message ) => {
3535 if ( ! condition )
3636 throw new Error ( `Assertion failed: ${ message } ` ) ;
You can’t perform that action at this time.
0 commit comments