Ruby's Louvre

每天学习一点点算法

导航

2010年9月26日 #

V8引擎过度优化的一个bug

摘要: 这个bug好像在3.0就存在,如今chrome7.0还没解决,我不得不专门写一篇文章来备忘一下了。 var expr = (new RegExp).compile('str'); alert(expr); // = undefined expr = new RegExp; expr.compile('str'); alert(expr); // = /str/ 运行代码 阅读全文

posted @ 2010-09-26 00:35 司徒正美 阅读(1481) 评论(2) 推荐(0)