1
0
Fork 0
mirror of https://github.com/rails/execjs synced 2023-03-27 23:21:20 -04:00

Normalize console in JSC

This commit is contained in:
Joshua Peek 2016-06-05 16:04:06 -07:00
parent b0be19c73d
commit 5c6f4a9115
No known key found for this signature in database
GPG key ID: 2852ABCC729F67DA

View file

@ -2,6 +2,7 @@
}, function(program) { }, function(program) {
var output; var output;
try { try {
delete this.console;
result = program(); result = program();
if (typeof result == 'undefined' && result !== null) { if (typeof result == 'undefined' && result !== null) {
print('["ok"]'); print('["ok"]');