Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests for proposal-well-formed-stringify #1787

Merged
merged 8 commits into from
Oct 3, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions features.txt
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ Symbol.prototype.description
# https://github.com/tc39/proposal-json-superset
json-superset

# Well-formed JSON.stringify
# https://github.com/tc39/proposal-well-formed-stringify
well-formed-json-stringify

# Intl.ListFormat
# https://github.com/tc39/proposal-intl-list-format
Intl.ListFormat
Expand Down
18 changes: 6 additions & 12 deletions test/built-ins/JSON/stringify/15.12.3-0-1.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 � whether as a constructor, an ordinary function, or both � 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 be 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');
2 changes: 1 addition & 1 deletion test/built-ins/JSON/stringify/15.12.3-0-2.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ info: |
This default applies to JSON.stringify, and it must exist as a function
taking 3 parameters.
es5id: 15.12.3-0-2
description: JSON.stringify must exist as be a function taking 3 parameters
description: JSON.stringify must exist as a function taking 3 parameters
---*/

var f = JSON.stringify;
Expand Down
16 changes: 0 additions & 16 deletions test/built-ins/JSON/stringify/15.12.3-0-3.js

This file was deleted.

56 changes: 0 additions & 56 deletions test/built-ins/JSON/stringify/15.12.3-11-16.js

This file was deleted.

56 changes: 0 additions & 56 deletions test/built-ins/JSON/stringify/15.12.3-11-17.js

This file was deleted.

56 changes: 0 additions & 56 deletions test/built-ins/JSON/stringify/15.12.3-11-18.js

This file was deleted.

56 changes: 0 additions & 56 deletions test/built-ins/JSON/stringify/15.12.3-11-19.js

This file was deleted.

2 changes: 1 addition & 1 deletion test/built-ins/JSON/stringify/15.12.3-11-2.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/*---
es5id: 15.12.3-11-2
description: >
A JSON.stringify replacer function works is applied to a top level
A JSON.stringify replacer function is applied to a top level
undefined value.
---*/

Expand Down
56 changes: 0 additions & 56 deletions test/built-ins/JSON/stringify/15.12.3-11-20.js

This file was deleted.

Loading