question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

What is the intention of this following code?

See original GitHub issue

Hi, I wonder to know what is the intention of this following code? Thanks.

function vuePlugin(Raven, Vue) {
  ...
  // what is the intention of this following code?
  var _oldOnError = Vue.config.errorHandler;
  Vue.config.errorHandler = function VueErrorHandler(error, vm, info) {
    ...
    if (typeof _oldOnError === 'function') {
      // what is the intention of this following code?
      _oldOnError.call(this, error, vm, info);
    }
  };
}

Above code comes from here

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
xxxsfcommented, Feb 11, 2020

All right, thank you very much for answering my question.

0reactions
kamilogorekcommented, Feb 11, 2020

It will, but there are a lot of people who still want to see the logs locally during development. See: https://github.com/getsentry/sentry-javascript/issues/2018

Read more comments on GitHub >

github_iconTop Results From Across the Web

Solved The intention of the following code is to print out - Chegg
Question: The intention of the following code is to print out exactly the following; You have 5 minutes left. you have 4 minutes...
Read more >
Coding With Intention. How to write well-defined and…
Explicit programming is the process of producing source code in which all of the inputs, outputs, operations, and exceptions are explicitly ...
Read more >
CG_Psuedo2Explanation.docx - 1. What is the intention of...
1. What is the intention of the following pseudocode?input base = 2, exponent = 3power = 1for num = 1 to exponentpower =...
Read more >
Programming by Intention - JetBrains
Inverts the condition and swaps the body of the conditional with the else block (or the code following the conditional). The resulting operation...
Read more >
How to make your code better with intention-revealing function ...
Code is a way to communicate with developers reading it. Functions with intention-revealing names are easier to read. We read the function ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found