marintsev / sputniktests

Automatically exported from code.google.com/p/sputniktests
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Some tests are not ES5-compliant #33

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Below is a list of 11 tests which were valid for ES3 but should fail in an ES5 
compliant engine. Especially the first 5 issues hurt FF4; these tests pass in 
most other engines.

- 15.1.1.1_A2_T1:
- 15.1.1.1_A2_T2:
- 15.1.1.2_A2_T1:
- 15.1.1.3_A2_T1:
- 15.1.1.3_A2_T2:
  Reason: 15.1.1.* - This property has the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: false }.
  Cannot assign a new value to NaN, Infinity and undefined

- 15.3.4.3_A6_T4:
  Reason: 15.3.4.3 - Steps 4-7, functions have a length property; should not throw a TypeError

- 15.4.4.2_A2_T1:
- 15.4.4.3_A2_T1:
  Reason: 15.4.4.2 - Array.prototype.toString and Array.prototype.toLocaleString are generic now

- 15.10.6_A2:
  Reason: 15.10.6 - "The RegExp prototype object is itself a regular expression object; its [[Class]] is 'RegExp'"
  Expected result: [object RegExp]

- 15.11.1.1_A1_T1:
- 15.11.2.1_A1_T1:
  Reason: 15.11.2.1 - If the argument message is not undefined, the message own property of the newly constructed object is set to ToString(message). Otherwise, the message own property is set to the empty String. (The hasOwnProperty('message') check should succeed)

Original issue reported on code.google.com by JanDeMo...@gmail.com on 30 Nov 2010 at 10:55

GoogleCodeExporter commented 8 years ago
5 more:

- 11.1.5_A4.1:
- 11.1.5_A4.2:
  Reason: using 'true' and 'null' as property names is valid now

- 11.8.2_A2.3_T1:
- 11.8.3_A2.3_T1:
  Reason: The '<' and '>' operator are evaluated left-to-right

- 12.6.4_A14_T1:
  Reason: 13.2 Step 18: the 'prototype' property has [[Enumerable]] false

Original comment by JanDeMo...@gmail.com on 30 Nov 2010 at 7:50

GoogleCodeExporter commented 8 years ago
See issue 37

Original comment by erights on 9 Feb 2011 at 10:12

GoogleCodeExporter commented 8 years ago

Original comment by erights on 9 Feb 2011 at 10:33

GoogleCodeExporter commented 8 years ago

Original comment by erights on 21 Feb 2011 at 10:28