Remove redundant JSON test

This commit is contained in:
Richard Gibson 2018-09-29 16:52:07 -04:00 committed by Rick Waldron
parent 58e308753c
commit e064fcd7ce
2 changed files with 6 additions and 28 deletions

View File

@ -4,19 +4,13 @@
/*---
info: |
This test should be run without any built-ins being added/augmented.
The name JSON must be bound to an object.
Section 15 says that every built-in Function object described in this
section <EFBFBD> whether as a constructor, an ordinary function, or both <EFBFBD> has
a length property whose value is an integer. Unless otherwise specified,
this value is equal to the largest number of named arguments shown in
the section headings for the function description, including optional
parameters.
This default applies to JSON.stringify, and it must exist as a function
taking 3 parameters.
The initial value of [[Configurable]] on JSON is true. This means we
should be able to delete (8.6.2.5) the stringify and parse properties.
es5id: 15.12.3-0-1
description: JSON.stringify must exist as a function
description: JSON.stringify must be deletable (configurable)
---*/
var f = JSON.stringify;
var o = JSON;
var desc = Object.getOwnPropertyDescriptor(o, "stringify");
assert.sameValue(typeof(f), "function", 'typeof(f)');
assert.sameValue(desc.configurable, true, 'desc.configurable');

View File

@ -1,16 +0,0 @@
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: |
This test should be run without any built-ins being added/augmented.
The initial value of [[Configurable]] on JSON is true. This means we
should be able to delete (8.6.2.5) the stringify and parse properties.
es5id: 15.12.3-0-3
description: JSON.stringify must be deletable (configurable)
---*/
var o = JSON;
var desc = Object.getOwnPropertyDescriptor(o, "stringify");
assert.sameValue(desc.configurable, true, 'desc.configurable');