我看了jscript文档

var newErrorObj = new Error(
  number,
  description
)
那么他的这个number是否可以自定义,
然后在在window.onerror中截取,
以下是我的代码,但什么也取不取<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <script type="text/javascript">
        window.onerror = function(msg, url, line)
        {
            alert(msg);
            alert(url);
            alert(line);
        }        throw new Error(1, "哈哈");
    </script>
</head>
<body>
    <div>
    </div>
</body>
</html>
谢谢