Index: test/intl/assert.js |
diff --git a/test/intl/assert.js b/test/intl/assert.js |
index e17615267ae327ea25b60db0a67e99d11fbb6a49..26405e8e9e1665a3d859dac2e420191150112c73 100644 |
--- a/test/intl/assert.js |
+++ b/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. |