diff options
Diffstat (limited to 'deps/v8/test/intl/assert.js')
-rw-r--r-- | deps/v8/test/intl/assert.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/deps/v8/test/intl/assert.js b/deps/v8/test/intl/assert.js index e17615267a..26405e8e9e 100644 --- a/deps/v8/test/intl/assert.js +++ b/deps/v8/test/intl/assert.js @@ -27,6 +27,14 @@ // Some methods are taken from v8/test/mjsunit/mjsunit.js + +function classOf(object) { + // Argument must not be null or undefined. + var string = Object.prototype.toString.call(object); + // String has format [object <ClassName>]. + return string.substring(8, string.length - 1); +} + /** * Compares two objects for key/value equality. * Returns true if they are equal, false otherwise. |