console.log.apply is not a function
This commit is contained in:
parent
847091048a
commit
35dbffa9e3
@ -148,8 +148,8 @@
|
||||
}
|
||||
};
|
||||
if (typeof console !== "undefined" && console !== null) {
|
||||
log = function() {
|
||||
return console.log.apply(console, arguments);
|
||||
log = function(arg) {
|
||||
return console.log(arg);
|
||||
};
|
||||
}
|
||||
if (!Object.keys) {
|
||||
|
||||
@ -86,8 +86,10 @@ config =
|
||||
|
||||
# XXX chrome can't into `{log} = console`
|
||||
if console?
|
||||
log = ->
|
||||
console.log arguments...
|
||||
# XXX scriptish - console.log.apply is not a function
|
||||
# https://github.com/scriptish/scriptish/issues/499
|
||||
log = (arg) ->
|
||||
console.log arg
|
||||
|
||||
# XXX opera cannot into Object.keys
|
||||
if not Object.keys
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user