Skip to content

Patch vega d3 fix fixme#2575

Merged
erights merged 5 commits into
masterfrom
2556-markm-fix-vega-fixme
Mar 4, 2021
Merged

Patch vega d3 fix fixme#2575
erights merged 5 commits into
masterfrom
2556-markm-fix-vega-fixme

Conversation

@erights

@erights erights commented Mar 4, 2021

Copy link
Copy Markdown
Member

Found and patched where vega-util was overriding Object.constructor by assignment.
Fixing that uncovered same problem with d3-color. Same patch.

vega-util was also overriding two other frozen primordial properties by assignment, hasOwnProperties and toString. Patched both, although toString is a hopeless cause. But fixing hasOwnProperties means SES can stop enabling it, further reducing vscode debugger's object inspector noise.

Fixes #2556

Fixes the FIXME kludge added to bin/runner at
https://github.com/Agoric/agoric-sdk/pull/2552/files/84f9ccf388e6aeb71b5aabb2a552e5ec36d4fa9f#r585869497

See
vega/vega#3075
endojs/endo#576

@FUDCo FUDCo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had no idea this patch mechanism existed. I don't know whether to be pleased or horrified by it, but in any case I'm glad to see this particular set of problems fixed.

@dckc dckc left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I understand this. But you might do well to stand by for reviews from others who are more confident.

Comment thread patches/external-editor+3.1.0.patch

@michaelfig michaelfig left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, after the behaviour changes are fixed.

Comment thread patches/node-fetch+2.6.1.patch
Comment thread patches/vega-util+1.16.0.patch Outdated
@erights erights enabled auto-merge (squash) March 4, 2021 17:40
@erights erights disabled auto-merge March 4, 2021 18:02
@erights erights requested a review from michaelfig March 4, 2021 18:02
@erights erights merged commit d4fa4f1 into master Mar 4, 2021
@erights erights deleted the 2556-markm-fix-vega-fixme branch March 4, 2021 18:32
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.

Investigate vega failure under SES 0.12.3

4 participants