chrome arguments bug and firefox regex backdoor
[code="js"]function b(x, y, a) { a = 10; alert(arguments[2] );//chrome bug(chrome 5.0.369) } b(1, 2); [/code] 在FF3.6之前.发现了怪异的后门.应该是开发者测试用的... 查了各种文档,没发现记载,可能是非正式属性 分别对应于正则表达式对象的6个属性 -1 : source -2 : global -3 : ignoreCase -4 : lastIndex -5 : multiline -6 : sticky 比如 /a/[-2] 相当于 (/a/).global [code="js"] document.write(/a/g[-3]) document.write("
"); document.write(/a/g.global) [/code] [url]http://www.cnblogs.com/bluedream2009/archive/2010/03/11/1683135.html[/url]