The data contained in this repository can be downloaded to your computer using one of several clients.
Please see the documentation of your version control software client for more information.

Please select the desired protocol below to get the URL.

This URL has Read-Only access.

Statistics
| Branch: | Revision:

main_repo / lib / util.js @ b0c0111b

History | View | Annotate | Download (14.3 KB)

# Date Author Comment
c7bc4cac 07/06/2012 10:28 PM Jonas Westerlund

Use unicode escape sequences instead of octal

The latter is illegal in strict mode.

6531f187 06/27/2012 09:51 PM Ben Noordhuis

util: speed up formatting of large arrays/objects

Don't .indexOf() into the keys array. V8 is smart but not so smart that it
knows how to turn the linear scan into a O(1) lookup.

Fixes #3562.

5b39929d 06/21/2012 03:05 PM isaacs

Add --no-deprecation and --trace-deprecation flags

928d28a7 05/10/2012 10:49 AM Ben Noordhuis

util: make _extend() more robust

Add a better 'is object?' check, the old one let values like true slip through.

e8592711 05/09/2012 10:44 AM Alex Kocharin

util: handle non-string return value in .inspect()

578ba76e 03/03/2012 12:22 PM ssuda

util: fix util.format() formatting of %%

c6c6f98f 02/20/2012 03:58 PM Maciej Małecki

util: add `util._extend` for extending objects

There were 2 duplicates with such functionality in `cluster` and
`child_process` modules which were replaced by this function.

8d3c46da 02/20/2012 07:42 AM Luke Gallagher

util: fix typo in lib/util.js

5403a8ce 01/29/2012 06:27 PM Brandon Benvie

core: add `NativeModule.prototype.deprecate`

Formalize and cleanup handling of deprecated core methods.

667aae59 01/23/2012 01:30 PM Fedor Indutny

Merge branch 'v0.6'

Conflicts:
ChangeLog
doc/template.html
lib/cluster.js
lib/http.js
lib/tls.js
src/node.h
src/node_version.h
test/simple/test-cluster-kill-workers.js

f9014438 01/22/2012 03:29 AM Brandon Benvie

util: use getOwnPropertyDescripter

Change formatProperty in util.js to use Object.getOwnPropertyDescriptor
instead of lookup[GS]etter.

Use the cached value from the descriptor to reduce number of property
lookups from 3 to 1.

Fallback to standard lookup if the descriptor is empty. This doesn't...

03e689fa 01/16/2012 08:33 AM Fedor Indutny

Revert "util: always display a warning for module in debug mode"

This reverts commit df62005ece4bb0be0d5af645fd9093b1506ce63d.

df62005e 01/16/2012 08:19 AM Maciej Małecki

util: always display a warning for module in debug mode

ee0a7b92 12/18/2011 05:07 PM Avi Flax

util: output Dates with Date.toString not Date.toUTCString

97900776 12/14/2011 07:36 AM Ben Noordhuis

util: add internal function _deprecationWarning()

b2040061 11/30/2011 08:14 AM Nathan Rajlich

util: ensure that the .inspect function isn't the one being executed

Fixes #2225.

1cb6fe47 11/17/2011 05:01 PM E. Azer Koçulu

util: remove the line requiring events

74f39041 11/11/2011 02:35 AM Ryan Dahl

dont use blue for numbers in util.inspect

ebefe77b 10/26/2011 03:58 PM Nathan Rajlich

More bulletproof `util.inspect()` function.

Use the real versions of the Date and RegExp functions, from the
prototype. This defends against code like:

var d = new Date()
d.toUTCString = null
util.inspect(d)
// TypeError: toUTCString is not a function...
2dbb470e 10/26/2011 03:33 PM Nathan Rajlich

Don't use `instanceof` in lib/util.js "is" checks.

While using `instanceof`, these functions could easily be faked with something
like: Object.create(Date.prototype)

So let's just not use it at all. A little slower, but these functions are only
used in the REPL / for debugging so it's OK....

b8f3e18a 10/26/2011 02:38 PM Nathan Rajlich

Export the type checking functions from `util.js`.

As per discussion at:
http://groups.google.com/group/nodejs-dev/browse_thread/thread/b08970166e4670cf

239b3d62 10/24/2011 04:23 PM Ryan Dahl

Remove resume and pause events

Too complex; unnecessary.

d77ce4b9 10/18/2011 04:12 PM Ryan Dahl

Fixes #1860. Remove process.writeError

Breaks a few tests in "make test-message"

cdf5d91f 10/11/2011 04:41 PM Ryan Dahl

Remove tty_legacy

87286cc7 10/05/2011 09:51 PM Colton Baker

Fixed a lot of jslint errors.

Fixes #1831

8c872508 09/12/2011 09:25 PM Ryan Dahl

Do not load readline from util.inspect

This causes all modules using console.log() to load readline which seems
unnecessary.

389e2a07 09/11/2011 10:13 AM koichik

util: Fix inspection for Error

Fixes #1634.

6139459d 09/08/2011 11:57 AM koichik

util: Fix inspection for sparse array

Fixes #1651.

98b64422 09/08/2011 11:53 AM koichik

util: Divide inspect() into some subroutines

44574bc3 09/02/2011 11:29 AM Nathan Rajlich

util: improve util.isDate() function

The old implementation was fragile. i.e. node-time is an example of a user-land
module that exports an extended Date object (with a few added functions on it's
own Date object's prototype). In that case, the old check fails.

54b409d6 08/15/2011 11:22 AM Nathan Rajlich

util: isRegExp() should not call toString() on its argument

An overloaded toString() method may have side effects
so don't call it for a simple type check.

d439c092 08/08/2011 10:24 AM koichik

Improve util.format() compatibility with browser.

Fixes #1434.

d3d8f1b9 07/30/2011 10:56 AM koichik

Add %% escape to util.format()

Fixes #1273.

874260b4 07/29/2011 08:11 PM Ben Noordhuis

util: add sprintf-like format() function

Fixes #1407.

d38fac22 07/08/2011 08:18 PM koichik

Fixes #1260

RegExp object is no longer Function.
http://code.google.com/p/v8/issues/detail?id=617

d1eba2b1 07/05/2011 07:49 PM Ryan Dahl

Revert "Fixes #1260"

Due to downgrade of V8.

This reverts commit 3e2abd12d3534d76e480fce7a0475d228749f31d.

3e2abd12 07/03/2011 03:19 PM koichik

Fixes #1260

RegExp object is no longer Function.
http://code.google.com/p/v8/issues/detail?id=617

1ba2c321 06/11/2011 02:51 AM Ryan Dahl

Massage util.inherits for perf increase

4d64f363 04/01/2011 08:40 PM isaacs

Closes GH-310 Format slashes properly

55048cdf 03/14/2011 08:37 PM Ryan Dahl

Update copyright headers

8c6a7b5d 12/03/2010 07:07 PM Devin Torres

Use more color in the repl, loosely inspired by TextMate's SunBurst theme

558e5ba2 12/02/2010 03:27 PM Ryan Dahl

lint util.js and src/node.js

dd53ceeb 12/01/2010 11:59 PM Ryan Dahl

lint

d4b726a1 11/17/2010 07:06 PM Tim Cooijmans

fix utils.inspect's detection of circular structures

e38eb0c5 10/11/2010 06:21 PM Micheil Smith

Soft migration of sys -> util, Removal of deprecated utils module.

4f679fd8 12/04/2009 07:05 PM Karl Guertin

Dependency free assert module with unit tests

530328f1 12/04/2009 07:05 PM Felix Geisendörfer

CommonJS testing for node.js

Refactored test suite to use the assert module for testing rather than
mjsunit.