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.

Function.prototype.toString: 'this' is not a Function object

See original GitHub issue

Having an issue configuring raven.js since updating to 3.20.0 with IE11.

It’s an Angular (5.0.1) CLI (1.5.0) app with a typical setup in app.module:

Raven
  .config('https://...@sentry.io/...', {
    environment: environment,
    release: version
  })
  .install();

Running the app causes an error in IE11 Function.prototype.toString: 'this' is not a Function object. Chrome and Firefox are ok.

Reverting to 3.19.1 resolves the issue.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
kamilogorekcommented, Nov 17, 2017

Fixed in 3.20.1

1reaction
asgerjensencommented, Nov 15, 2017

https://github.com/asgerjensen/raven-js-ie-issue

If you switch from 3.20.0 to 3.19.1 it starts working. Be sure to clear node_modules and package-lock.json

Also, i removed my key from app.module.ts, you probably have one or two lying around…

I think, maybe the issue is a conflict with some of the other polyfills that IE require from core-js.

Read more comments on GitHub >

github_iconTop Results From Across the Web

javascript - Babel 7: Function.prototype.toString: 'this' is not a ...
The error is thrown on something generated by Babel when "extends HTMLElement" is in the code (Babel generates something like "_.isNative" that ...
Read more >
IE11 - Function.prototype.toString: 'this' is not a Function object ...
This issue is pending since a long time and I know that support for IE 11 is not in your primary focus. But...
Read more >
Function.prototype.toString() - JavaScript - MDN Web Docs
The toString() method returns a string representing the source code of the specified Function.
Read more >
javascript Function.prototype.toString() - CodeProject Reference
A string representing the source code of the function. Description. The Function object overrides the toString method inherited from Object ; it does...
Read more >
Function.prototype.toString revision - TC39
for functions defined using ECMAScript code, toString must return source text ... function objects and bound function exotic objects, toString must not ......
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