diff options
Diffstat (limited to 'test/suite/intl402/ch12/12.2/12.2.1.js')
-rw-r--r-- | test/suite/intl402/ch12/12.2/12.2.1.js | 27 |
1 files changed, 10 insertions, 17 deletions
diff --git a/test/suite/intl402/ch12/12.2/12.2.1.js b/test/suite/intl402/ch12/12.2/12.2.1.js index f4bf51811..0ff91067a 100644 --- a/test/suite/intl402/ch12/12.2/12.2.1.js +++ b/test/suite/intl402/ch12/12.2/12.2.1.js @@ -2,32 +2,25 @@ // This code is governed by the BSD license found in the LICENSE file. /** - * @path intl402/ch12/12.2/12.2.1.js * @description Tests that the Intl.NumberFormat prototype object exists and * is not writable, enumerable, or configurable. * @author: Roozbeh Pournader */ -var testcase = function() { - "use strict"; +var desc; - var desc; - - if (!Intl.NumberFormat.hasOwnProperty('prototype')) { +if (!Intl.NumberFormat.hasOwnProperty('prototype')) { $ERROR('Intl.NumberFormat has no prototype property'); - } +} - desc = Object.getOwnPropertyDescriptor(Intl.NumberFormat, 'prototype'); - if (desc.writable === true) { +desc = Object.getOwnPropertyDescriptor(Intl.NumberFormat, 'prototype'); +if (desc.writable === true) { $ERROR('Intl.NumberFormat.prototype is writable.'); - } - if (desc.enumerable === true) { +} +if (desc.enumerable === true) { $ERROR('Intl.NumberFormat.prototype is enumerable.'); - } - if (desc.configurable === true) { +} +if (desc.configurable === true) { $ERROR('Intl.NumberFormat.prototype is configurable.'); - } - - return true; } -runTestCase(testcase); + |