Skip to content

Commit 17a5ff6

Browse files
committed
[js] Emit a warning on stderr instead of stdout so it doesn't get mixed with normal output when running tests.
1 parent b802319 commit 17a5ff6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vm/js/nqp-runtime/core.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ op.newtype = function(how, repr) {
313313
op.can = function(obj, method) {
314314
if (typeof obj !== 'object' || obj instanceof NQPInt || obj instanceof CodeRef || obj instanceof Hash || obj instanceof NQPArray) return 0;
315315
if (!obj._STable.methodCache) {
316-
console.log('we have no method cache, checking: ' + method);
316+
console.warn('we have no method cache, checking: ' + method);
317317
return 0;
318318
}
319319
return obj._STable.methodCache.hasOwnProperty(method) ? 1 : 0;

0 commit comments

Comments
 (0)