When I use the JSC (JavaScriptCore) engine provided in the System Library, it acts differently then when using Safari's debug console
$ /System/Library/Frameworks/JavaScriptCore.framework/Versions/A/Resources/jsc
>>> console.log("hello");
Exception: TypeError: undefined is not an object (evaluating 'console.log')
When console.log("hello");
works perfectly fine in Safari.