Skip to content
Snippets Groups Projects
Commit c129ac85 authored by Ujjwal Sharma's avatar Ujjwal Sharma Committed by Rick Waldron
Browse files

intl: improve coverage for Intl.NumberFormat

Add tests for Intl.NumberFormat.prototype[@@toStringTag].
parent 9271068a
No related branches found
No related tags found
No related merge requests found
// Copyright (C) 2018 Ujjwal Sharma. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-intl.numberformat.prototype-@@tostringtag
description: >
Initial value of Intl.NumberFormat.prototype[@@toStringTag] is "Object".
---*/
assert.sameValue(Intl.NumberFormat.prototype[Symbol.toStringTag], 'Object');
assert.sameValue(
Object.prototype.toString.call(new Intl.NumberFormat()),
'[object Object]'
);
// Copyright (C) 2018 Ujjwal Sharma. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-intl.numberformat.prototype-@@tostringtag
description: >
Tests that Intl.NumberFormat.prototype[@@toStringTag] has the required attributes.
includes: [propertyHelper.js]
---*/
verifyProperty(Intl.NumberFormat, Symbol.toStringTag, {
writable: false,
enumerable: false,
configurable: true
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment