Skip to content

Commit

Permalink
[temp]encode unicode code-points in code
Browse files Browse the repository at this point in the history
  • Loading branch information
refack committed Apr 5, 2019
1 parent 14912d8 commit 38a3362
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 47 deletions.
16 changes: 8 additions & 8 deletions deps/acorn/acorn/dist/acorn.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion deps/node-inspect/lib/internal/inspect_repl.js
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ function createRepl(inspector) {

[util.inspect.custom](depth, { stylize }) {
const { startTime, endTime } = this.data;
return stylize(`[Profile ${endTime - startTime}ΞΌs]`, 'special');
return stylize(`[Profile ${endTime - startTime}\u3bcss]`, 'special');
}

save(filename = 'node.cpuprofile') {
Expand Down
26 changes: 13 additions & 13 deletions lib/internal/cli_table.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@ const HasOwnProperty = Function.call.bind(Object.prototype.hasOwnProperty);
// Refs: https://github.com/nodejs/node/issues/10673
const tableChars = {
/* eslint-disable node-core/non-ascii-character */
middleMiddle: '─',
rowMiddle: 'β”Ό',
topRight: '┐',
topLeft: 'β”Œ',
leftMiddle: 'β”œ',
topMiddle: '┬',
bottomRight: 'β”˜',
bottomLeft: 'β””',
bottomMiddle: 'β”΄',
rightMiddle: '─',
left: 'β”‚ ',
right: ' β”‚',
middle: ' β”‚ ',
middleMiddle: '\u2500',
rowMiddle: '\u253c',
topRight: '\u2510',
topLeft: '\u250c',
leftMiddle: '\u251c',
topMiddle: '\u252c',
bottomRight: '\u2518',
bottomLeft: '\u2514',
bottomMiddle: '\u2534',
rightMiddle: '\u2524',
left: '\u2502 ',
right: ' \u2502',
middle: ' \u2502 ',
/* eslint-enable node-core/non-ascii-character */
};

Expand Down
27 changes: 2 additions & 25 deletions lib/internal/timers.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,29 +29,6 @@
// Object maps are kept which contain linked lists keyed by their duration in
// milliseconds.
//
/* eslint-disable node-core/non-ascii-character */
//
// ╔════ > Object Map
// β•‘
// ╠══
// β•‘ lists: { '40': { }, '320': { etc } } (keys of millisecond duration)
// β•šβ•β• β”Œβ”€β”€β”€β”€β”˜
// β”‚
// ╔══ β”‚
// β•‘ TimersList { _idleNext: { }, _idlePrev: (self) }
// β•‘ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
// β•‘ ╔══ β”‚ ^
// β•‘ β•‘ { _idleNext: { }, _idlePrev: { }, _onTimeout: (callback) }
// β•‘ β•‘ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
// β•‘ β•‘ β”‚ ^
// β•‘ β•‘ { _idleNext: { etc }, _idlePrev: { }, _onTimeout: (callback) }
// ╠══ ╠══
// β•‘ β•‘
// β•‘ β•šβ•β•β•β• > Actual JavaScript timeouts
// β•‘
// β•šβ•β•β•β• > Linked List
//
/* eslint-enable node-core/non-ascii-character */
//
// With this, virtually constant-time insertion (append), removal, and timeout
// is possible in the JavaScript layer. Any one list of timers is able to be
Expand All @@ -66,8 +43,8 @@
// always be due to timeout at a later time.
//
// Less-than constant time operations are thus contained in two places:
// The PriorityQueue β€” an efficient binary heap implementation that does all
// operations in worst-case O(log n) time β€” which manages the order of expiring
// The PriorityQueue - an efficient binary heap implementation that does all
// operations in worst-case O(log n) time - which manages the order of expiring
// Timeout lists and the object map lookup of a specific list by the duration of
// timers within (or creation of a new list). However, these operations combined
// have shown to be trivial in comparison to other timers architectures.
Expand Down

0 comments on commit 38a3362

Please sign in to comment.