Fix env-js node 0.4.2 incompatibility.

The `console` global is read-only; it cannot be reassigned.
This commit is contained in:
Michael Bostock 2011-03-04 11:48:14 -08:00
Родитель 1fe1b466d9
Коммит 3568ecac2c
1 изменённых файлов: 1 добавлений и 3 удалений

Просмотреть файл

@ -42,9 +42,7 @@ var log = {
exception: function(){return this;}
};
try{
console = console;
}catch(e){
if (typeof console == "undefined") {
console = require('envjs/console').console;
}