Code Monkey home page Code Monkey logo

console-polyfill's Introduction

Hi there ๐Ÿ‘‹

I make projects which help developers to build awesome things. I adore learning more about infosec & austrian economics.

Check out my blog, ping me on twitter, nostr or send me an email. My PGP is 697079DA6878B89. You could fund my work with sponsorship.

๐Ÿ”ญ Iโ€™m currently working on:

Signed backups: github / gitlab. Old projects: brunch, chaplin, es6-shim, chieftain

console-polyfill's People

Contributors

honzajde avatar lehresman avatar lukebayes avatar mikach avatar ozzle avatar paulmillr avatar qfox avatar rcocetta avatar seanadkinson avatar valscion avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

console-polyfill's Issues

missing "ignore" entry in bower.json

This is a small issue, but it's easily fixed.
My automated build script does a bower install which gives the following error:

##[error]bower console-polyfill#~0.2.1     invalid-meta console-polyfill is missing "ignore" entry in bower.json

I've set the build to continue on this error, and it works, however it now shows all my builds as "Partially succeeded".

By adding the line

"ignore": [],

in bower.json, the warning should go away.

New release

Any chance you could push a dot release to npm to pick up the most recent changes in master?

Breaks on Chrome Version 43.0.2341.0 canary (64-bit)

Uncaught TypeError: Cannot set property memory of #<Console> which has only a getter
    at window.console (<anonymous>:14:45)
    at <anonymous>:16:3
    at Object.InjectedScript._evaluateOn (<anonymous>:895:140)
    at Object.InjectedScript._evaluateAndWrap (<anonymous>:828:34)
    at Object.InjectedScript.evaluate (<anonymous>:694:21)

I don't know if this will make it in to a release, but it might be a good idea to wrap these assignments in a try/catch.

Additional methods

This polyfill is missing some methods from the console API, like console.table.

If that's relevant, I can send a PR for it. I'm not sure if they've been left out intentionally.

Suggestion: declare arrays rather than string.split

Interested in this polyfill, but I am curious about the choice of string.split versus declaring arrays from the start. Ran a test and the results seem to favor moving away from string split. Please check out the jsperf test As a trivial downside, the change adds a few more characters to the declaration of methods in the form of single quotes.

FYI: Doesn't abstract console.log differences between IE & Chrome

In IE8 (and possibly newer versions as well), typeof console.log is object instead of function. I know there are other solutions that account for this and perhaps this one is not intended to do that, but it would be nice if it did so that it is safe to call a wrapper function like

function() {
    console.log.apply(console, arguments);
    /* (do something else here -- perhaps call cloud log aggregation API) */
}

Chrome Canary - Can't set console.memory

Getting this error in Chrome Canary:

Uncaught TypeError: Cannot set property memory of #<Console> which has only a getter

It is happening on line 18, which is setting console.memory, but it's not allowed anymore I guess. This will probably make it into Chrome eventually, so good to fix now. I'll look into a quick fix.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.