See the bug for details.
This seems to happen somewhat consistently on Opera 12, let's
try to work around the browser bug before we blacklist it.
Includes some console logging.
Bug: 57567
Change-Id: Ifd7b203fb0ca61e4a749e6b0fc031e62121cc45a
JSON.stringify( descriptor.style ),
JSON.stringify( descriptor.messages )
];
+ // Attempted workaround for a possible Opera bug (bug 57567).
+ // This regex should never match under sane conditions.
+ if ( /^\s*\(/.test( args[1] ) ) {
+ args[1] = 'function' + args[1];
+ log( 'Detected malformed function stringification (bug 57567)' );
+ }
} catch ( e ) {
return;
}