diff options
Diffstat (limited to 'js/src/tests/test262/intl402/RelativeTimeFormat/instance/prototype.js')
-rw-r--r-- | js/src/tests/test262/intl402/RelativeTimeFormat/instance/prototype.js | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/js/src/tests/test262/intl402/RelativeTimeFormat/instance/prototype.js b/js/src/tests/test262/intl402/RelativeTimeFormat/instance/prototype.js new file mode 100644 index 0000000000..f874db89f6 --- /dev/null +++ b/js/src/tests/test262/intl402/RelativeTimeFormat/instance/prototype.js @@ -0,0 +1,22 @@ +// Copyright 2018 Igalia, S.L. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: sec-Intl.RelativeTimeFormat +description: > + Intl.RelativeTimeFormat instance object is created from %RelativeTimeFormatPrototype%. +info: | + Intl.RelativeTimeFormat ([ locales [ , options ]]) + + 2. Let relativeTimeFormat be ! OrdinaryCreateFromConstructor(NewTarget, "%RelativeTimeFormatPrototype%"). +features: [Intl.RelativeTimeFormat] +---*/ + +const value = new Intl.RelativeTimeFormat(); +assert.sameValue( + Object.getPrototypeOf(value), + Intl.RelativeTimeFormat.prototype, + "Object.getPrototypeOf(value) equals the value of Intl.RelativeTimeFormat.prototype" +); + +reportCompare(0, 0); |