diff options
Diffstat (limited to 'cli/rt/02_console.js')
-rw-r--r-- | cli/rt/02_console.js | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/cli/rt/02_console.js b/cli/rt/02_console.js index ab91ffc09..43638efed 100644 --- a/cli/rt/02_console.js +++ b/cli/rt/02_console.js @@ -14,10 +14,16 @@ bold, } = window.__bootstrap.colors; - const { - isInvalidDate, - hasOwnProperty, - } = window.__bootstrap.webUtil; + function isInvalidDate(x) { + return isNaN(x.getTime()); + } + + function hasOwnProperty(obj, v) { + if (obj == null) { + return false; + } + return Object.prototype.hasOwnProperty.call(obj, v); + } // Copyright Joyent, Inc. and other Node contributors. MIT license. // Forked from Node's lib/internal/cli_table.js |