-
-
Notifications
You must be signed in to change notification settings - Fork 93
Fix prototype keys causing crash in color parsing and invalid colors in color coercion expressions #1036
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
Fix prototype keys causing crash in color parsing and invalid colors in color coercion expressions #1036
Changes from 2 commits
fa719fe
e212106
5a8ca93
2e69da8
89d3c87
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,5 +10,17 @@ | |
| { | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I noticed that there were both
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I can't find anything related to this in the history of the repo, I'm not sure they were ever used, and also from a very shallow test I made these looks duplicates of the output files, so I would recommend removing them.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sure. Remove in this PR or shall I make a separate PR?
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A separate PR seems like the right approach. |
||
| "message": "layers[1].paint.fill-outline-color: color expected, array found", | ||
| "line": 26 | ||
| }, | ||
| { | ||
| "message": "layers[2].paint.fill-color: color expected, \"__proto__\" found", | ||
HarelM marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "line": 35 | ||
| }, | ||
| { | ||
| "message": "layers[2].paint.fill-outline-color.stops[0][1]: color expected, \"valueOf\" found", | ||
| "line": 39 | ||
| }, | ||
| { | ||
| "message": "layers[2].paint.fill-outline-color.stops[1][1]: color expected, \"__proto__\" found", | ||
| "line": 40 | ||
| } | ||
| ] | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| { | ||
| "version": 8, | ||
| "sources": { | ||
| "vector": { | ||
| "type": "vector", | ||
| "url": "https://demotiles.maplibre.org/tiles/tiles.json" | ||
| } | ||
| }, | ||
| "light": { | ||
| "anchor": "map", | ||
| "position": [1, 90, 90], | ||
| "color": "__proto__", | ||
| "intensity": 0.75 | ||
| }, | ||
| "layers": [] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| [ | ||
| { | ||
| "message": "color: color expected, \"__proto__\" found", | ||
| "line": 12 | ||
| } | ||
| ] |
Uh oh!
There was an error while loading. Please reload this page.