Skip to content
This repository has been archived by the owner on May 28, 2019. It is now read-only.

Less aggressive feature tests #73

Open
ghost opened this issue Jan 12, 2015 · 1 comment
Open

Less aggressive feature tests #73

ghost opened this issue Jan 12, 2015 · 1 comment

Comments

@ghost
Copy link

ghost commented Jan 12, 2015

The parse feature tests currently detect and ban extensions to the JSON grammar:

// Safari <= 5.1.2 and FF 3.1b1 allow unescaped tabs in strings.

// FF 4.0 and 4.0.1 allow leading `+` signs and leading
// decimal points. FF 4.0, 4.0.1, and IE 9-10 also allow
// certain octal literals.

// FF 4.0, 4.0.1, and Rhino 1.7R3-R4 allow trailing decimal
// points. These environments, along with FF 3.1b1 and 2,
// also allow trailing commas in JSON objects and arrays.

Let's consider removing these. They add weight, test for edge cases, and penalize modern environments. JSON that includes trailing decimals, commas, or octal literals is already non-portable.

@ghost ghost added the enhancement label Jan 12, 2015
@bnjmnt4n
Copy link
Member

Sure.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

1 participant