yui/yui3 — pull request #495 by tripp (2013-03-06 03:21:01+00:00)
Title: JSON - update meta files to load shims for android 2.3.4

Potential fix for trac2533148. The main point of this is to capture work done while debugging.

I added new tests to the json parse and stringify meta files. Used tests that were actually failing. There may be better tests to use.

This fix resolves all issues with parse and stringify with android 2.3.4. It has been tested in ie 6, 7, 8, 9, 10 (both 10s)
latest: ff, safari, chrome and opera
android 4.1.1
android 2.3.4

All tests pass and the shims are only loaded for ie 6, 7 and android 2.3.4.

Ultimately, the shim will need to load for stringify in android 2.3.4.
An alternate solution for the parse failures would be to add the sugar back into the parse method. Something like the below:
if(typeof arguments[0] !== 'string') {
arguments[0] = arguments[0] + '';
}