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