Skip to content
Merged
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
8 changes: 4 additions & 4 deletions utils/shell-config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018 Apple Inc. All rights reserved.
* Copyright (C) 2018-2025 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
Expand Down Expand Up @@ -27,10 +27,10 @@ const isInBrowser = false;
if (typeof console == "undefined")
console = {};

console.debug ??= (...args) => console.log("Debug:", ...args);
console.debug ??= (...args) => printErr("Debug: " + args.join(" "));
console.log ??= (...args) => print(args.join(" "));
console.warn ??= (...args) => console.log("Warn:", ...args);
console.error ??= (...args) => console.log("Error:", ...args);
console.warn ??= (...args) => printErr("Warn: " + args.join(" "));
console.error ??= (...args) => printErr("Error: " + args.join(" "));
console.assert ??= (condition, message) => {
if (!condition)
throw new Error(`Assertion failed: ${message}`);
Expand Down
Loading