We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
maplibre-gl-js version: 4.5.1
browser: safari
on("load",...)
Paste this in on JSBin: https://jsbin.com/
<!DOCTYPE html> <html lang="en"> <head> <title>Display a map</title> <meta property="og:description" content="Initialize a map in an HTML element with MapLibre GL JS." /> <meta charset='utf-8'> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel='stylesheet' href='https://unpkg.com/[email protected]/dist/maplibre-gl.css' /> <script src='https://unpkg.com/[email protected]/dist/maplibre-gl.js'></script> <style> body { margin: 0; padding: 0; } html, body, #map { height: 100%; } </style> </head> <body> <div id="map"></div> <script> const map = new maplibregl.Map({ container: 'map', // container id style: 'https://demotiles.maplibre.org/style.json', // style URL center: [0, 0], // starting position [lng, lat] zoom: 1, // starting zoom maplibreLogo: true }); map.on("load", () => { console.log(variable_does_not_exist); }) </script> </body> </html>
On the last version of 3.x, console.error is called with ReferenceError: Can't find variable: variable_does_not_exist
console.error
ReferenceError: Can't find variable: variable_does_not_exist
Nothing is printed to the console.
The text was updated successfully, but these errors were encountered:
Can you check if the following PR solve this issue as well?
Sorry, something went wrong.
Yes, that solves the issue.
Hmm... interesting, probably related to the fact that we catch everything and not just the abort exception... CC: @xabbu42
Successfully merging a pull request may close this issue.
maplibre-gl-js version: 4.5.1
browser: safari
Steps to Trigger Behavior
on("load",...)
event.Link to Demonstration
Paste this in on JSBin: https://jsbin.com/
Expected Behavior
On the last version of 3.x,
console.error
is called withReferenceError: Can't find variable: variable_does_not_exist
Actual Behavior
Nothing is printed to the console.
The text was updated successfully, but these errors were encountered: