archives

« Bugzilla Issues Index

#52 — Need Strict Mode tests


We have zero Strict Mode tests today. Ballpark figure is we need 250+ test cases for shallow, yet complete coverage.


In ES5.1, Strict Mode seems to affect:
- 4.2.2
- 7.6.1.2
- 7.8.3
- 7.8.4
- 10.1.1
- Table 17
- 10.2.2.1
- 10.3.1
- 10.4.2.1
- 10.5
- 10.6
- 11.2.1
- 11.4.1
- 11.13.1
- 12.2.1
- 12.10.1
- 12.14.1
- 13
- 13.1
- 14
- 15.3.2.1
- 15.3.5
- 15.3.5.4
- 16
- B.1.1
- B.1.2
- Annex C


For inspiration:
http://kangax.github.com/es5-compat-table/strict-mode/
https://developer.mozilla.org/en/JavaScript/Strict_mode

All code snippets from MDN added after August 2010 (true for the strict mode article) are in public domain (https://developer.mozilla.org/Project:Copyrights).

No idea what kangax's tests licence is.


We have at least a minimal number of Strict Mode tests for the ES5 sections called out previously. Also, the test harness is now capable of supporting so-called early error parser test cases.