(Adaptive Loop) Pass 3
(Adaptive Loop) Record freeze commit hash in context manifest
This commit is contained in:
1079 files changed
+1131878
No files matched your search
+9
@@ -0,0 +1,9 @@
|
||||
import { truncate } from './helpers.js';
|
||||
export default function inspectFunction(func, options) {
|
||||
const functionType = func[Symbol.toStringTag] || 'Function';
|
||||
const name = func.name;
|
||||
if (!name) {
|
||||
return options.stylize(`[${functionType}]`, 'special');
|
||||
}
|
||||
return options.stylize(`[${functionType} ${truncate(name, options.truncate - 11)}]`, 'special');
|
||||
}
|
||||
Reference in new issue
Block a user