Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(552)

Unified Diff: test/intl/assert.js

Issue 2273953003: Add support for DateTimeFormat.formatToParts (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: address review comments: move back to INPROGRESS bucket Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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.

Powered by Google App Engine
This is Rietveld 408576698