Fix env-js node 0.4.2 incompatibility.
The `console` global is read-only; it cannot be reassigned.
This commit is contained in:
Родитель
1fe1b466d9
Коммит
3568ecac2c
|
@ -42,9 +42,7 @@ var log = {
|
|||
exception: function(){return this;}
|
||||
};
|
||||
|
||||
try{
|
||||
console = console;
|
||||
}catch(e){
|
||||
if (typeof console == "undefined") {
|
||||
console = require('envjs/console').console;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче