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.

belCreateElement TypeError in Safari

See original GitHub issue

Running into an error with onload and onunload events in Safari. Can verify when removing the load attributes from the element the error is suppressed.

TypeError: Function.caller used to retrieve strict caller

Here is a temp URL: http://ec2-54-201-45-223.us-west-2.compute.amazonaws.com

Issue Analytics

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

github_iconTop GitHub Comments

4reactions
fczuardicommented, Aug 17, 2016

Not sure if I should file a different bug for this, but on firefox, using choo I get this error

TypeError: access to strict mode caller function is censored

When using a view with onload, such as:

const mainView = (state, prev, send) => html`
<div onload=${(el) => send('bodyLoaded', el)}></div>
`;

Using yo-yoify didn’t helped 😦

1reaction
josephluckcommented, Jan 11, 2017

On further inspection, yo-yoify doesn’t fix the issue in safari. As far as I can see it occurs when having nested onload methods.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Javascript ES6 TypeError in Safari & IE - Stack Overflow
It makes an Ajax call to show a data in DOM, which works for Chrome and Firefox but for some reason Safari gives...
Read more >
Safari 11.0 typeError - Apple Community - Apple Discussions
Safari 11.0 typeError. I'm running Mac OS High Sierra version 10.13.1 (17B48) on MacBook Pro (Retina, 15-inch, Early 2013).
Read more >
TypeError: undefined is not an object in Safari (MacOS and ...
The Cart overlay is failing to display sometimes in Safari on MacOS and iOS. It is very non-deterministic and I've not been able...
Read more >
uppy - UNPKG
... $$selfFulfillment","TypeError","lib$es6$promise$$internal$$cannotReturnOwn" ... n * Falls back to prompt() when the easy way fails (hello, Safari!)\n ...
Read more >
How to Fix TypeError: Null is Not an Object in JavaScript
This specific error message is shown only on Safari. Other browsers display a different message for this error. Error message: TypeError: null ...
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