Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Directly report errors for browser events and timer. #7363

Merged
merged 5 commits into from
Feb 7, 2017

Conversation

cramforce
Copy link
Member

Part of #7353

@cramforce cramforce merged commit 6a97771 into ampproject:master Feb 7, 2017
@cramforce cramforce deleted the events-and-timers branch February 7, 2017 18:53
torch2424 pushed a commit to torch2424/amphtml that referenced this pull request Feb 14, 2017
jridgewell added a commit to jridgewell/amphtml that referenced this pull request Feb 15, 2017
Fixes a bug from ampproject#7363. Because the extensions never see a call to
`setReportError`, in their own bundles `reportError` is probably
`undefined`.

This fix makes `reportError` a global variable, so we get the same
requirements (entry-points must call `setReportError`). But now, the
extension bundles will use that global `reportError`.
jridgewell added a commit to jridgewell/amphtml that referenced this pull request Feb 15, 2017
Fixes a bug from ampproject#7363. Because the extensions never see a call to
`setReportError`, in their own bundles `reportError` is probably
`undefined`.

This fix makes `reportError` a global variable, so we get the same
requirements (entry-points must call `setReportError`). But now, the
extension bundles will use that global `reportError`.
jridgewell added a commit to jridgewell/amphtml that referenced this pull request Feb 16, 2017
Fixes a bug from ampproject#7363. Because the extensions never see a call to
`setReportError`, in their own bundles `reportError` is probably
`undefined`.

This fix makes `reportError` a global variable, so we get the same
requirements (entry-points must call `setReportError`). But now, the
extension bundles will use that global `reportError`.
jridgewell added a commit that referenced this pull request Feb 16, 2017
* Fix undefined reportError

Fixes a bug from #7363. Because the extensions never see a call to
`setReportError`, in their own bundles `reportError` is probably
`undefined`.

This fix makes `reportError` a global variable, so we get the same
requirements (entry-points must call `setReportError`). But now, the
extension bundles will use that global `reportError`.

* Treat setReportError like initLogConstructor

`setReportError` MUST be called from every entry point.

* Use simple console logs for 3p frame error reporting

Using the standard error reporter requires a tangle of dependencies that
are not available to 3p frames. After #5527, we can use `reportError`
like normal.

* Add comments
jridgewell added a commit that referenced this pull request Feb 16, 2017
* Fix undefined reportError

Fixes a bug from #7363. Because the extensions never see a call to
`setReportError`, in their own bundles `reportError` is probably
`undefined`.

This fix makes `reportError` a global variable, so we get the same
requirements (entry-points must call `setReportError`). But now, the
extension bundles will use that global `reportError`.

* Treat setReportError like initLogConstructor

`setReportError` MUST be called from every entry point.

* Use simple console logs for 3p frame error reporting

Using the standard error reporter requires a tangle of dependencies that
are not available to 3p frames. After #5527, we can use `reportError`
like normal.

* Add comments
mrjoro pushed a commit to mrjoro/amphtml that referenced this pull request Apr 28, 2017
mrjoro pushed a commit to mrjoro/amphtml that referenced this pull request Apr 28, 2017
* Fix undefined reportError

Fixes a bug from ampproject#7363. Because the extensions never see a call to
`setReportError`, in their own bundles `reportError` is probably
`undefined`.

This fix makes `reportError` a global variable, so we get the same
requirements (entry-points must call `setReportError`). But now, the
extension bundles will use that global `reportError`.

* Treat setReportError like initLogConstructor

`setReportError` MUST be called from every entry point.

* Use simple console logs for 3p frame error reporting

Using the standard error reporter requires a tangle of dependencies that
are not available to 3p frames. After ampproject#5527, we can use `reportError`
like normal.

* Add comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants