• Login
    • Search
    • Categories
    • Recent
    • Tags
    • Users
    • Groups
    • Rules
    • Help

    Do more on the web, with a fast and secure browser!

    Download Opera browser with:

    • built-in ad blocker
    • battery saver
    • free VPN
    Download Opera

    Sorry, we can't show the code for this error

    Suggestions and feature requests
    1
    2
    645
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • absolutelyfreeweb
      absolutelyfreeweb last edited by

      Error in eventhandler for runtime.onMessage: [object object]

      why not ?? where is the error ? Could you see why and try to add the exact error ?

      error was thrown using json_parse from https://github.com/douglascrockford/JSON-js instead of the JSON object (just replacing the call)

      Reply Quote 0
        1 Reply Last reply
      • absolutelyfreeweb
        absolutelyfreeweb last edited by

        ok so here is code and problem is really that if throw is used without a catch, it does not show the thrown exception anywhere. code:

        alert('we are throwing an error next');

        var error = function (m) {
        throw {
        name: "SyntaxError",
        message: m,
        at: at,
        text: text
        };
        };

        error('this is an error'); // <-- this does not show anywhere. Browser terminates the code not showing there was an exception thrown.

        alert('this is after the error, and not reachable');

        Reply Quote 0
          1 Reply Last reply
        • First post
          Last post

        Computer browsers

        • Opera for Windows
        • Opera for Mac
        • Opera for Linux
        • Opera beta version
        • Opera USB

        Mobile browsers

        • Opera for Android
        • Opera Mini
        • Opera Touch
        • Opera for basic phones

        • Add-ons
        • Opera account
        • Wallpapers
        • Opera Ads

        • Help & support
        • Opera blogs
        • Opera forums
        • Dev.Opera

        • Security
        • Privacy
        • Cookies Policy
        • EULA
        • Terms of Service

        • About Opera
        • Press info
        • Jobs
        • Investors
        • Become a partner
        • Contact us

        Follow Opera

        • Opera - Facebook
        • Opera - Twitter
        • Opera - YouTube
        • Opera - LinkedIn
        • Opera - Instagram

        © Opera Software 1995-