aboutsummaryrefslogtreecommitdiff
path: root/deps/v8/test/intl/date-format/format-is-bound.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/intl/date-format/format-is-bound.js')
-rw-r--r--deps/v8/test/intl/date-format/format-is-bound.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/deps/v8/test/intl/date-format/format-is-bound.js b/deps/v8/test/intl/date-format/format-is-bound.js
index b744b65b91..fdec1eab01 100644
--- a/deps/v8/test/intl/date-format/format-is-bound.js
+++ b/deps/v8/test/intl/date-format/format-is-bound.js
@@ -37,3 +37,10 @@ dateArray.forEach(dtf.format);
// Formatting a date should work in a direct call.
dtf.format();
+
+// format should be bound properly even if created from a non-instance
+var legacy = Intl.DateTimeFormat.call(
+ Object.create(Intl.DateTimeFormat));
+var boundFormat = legacy.format;
+assertEquals(dtf.format(12345), legacy.format(12345));
+assertEquals(dtf.format(54321), boundFormat(54321));