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

🎨 optimize current proxy setting logic #1486

Merged
merged 2 commits into from
Jul 27, 2021
Merged

Conversation

kuitos
Copy link
Member

@kuitos kuitos commented Jun 6, 2021

Checklist
  • npm test passes
  • tests are included
  • commit message follows commit guidelines
Description of change

Keep the current sandbox getter as accurate as possible, might could resolve some issue about sandbox getting incorrect in multiple Instance scenario.

This change need to be test if it has a performance impact.

Probably it could fix #1266

@@ -123,7 +123,11 @@ test('hasOwnProperty should works well', () => {
test('descriptor of non-configurable and non-enumerable property existed in raw window should be the same after modified in sandbox', () => {
Object.defineProperty(window, 'nonConfigurableProp', { configurable: false, writable: true });
// eslint-disable-next-line getter-return
Object.defineProperty(window, 'nonConfigurablePropWithAccessor', { configurable: false, get() {}, set() {} });
Copy link
Collaborator

Choose a reason for hiding this comment

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

这个换行是啥规则, 参数数量超过某一值换行?

Copy link
Member Author

Choose a reason for hiding this comment

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

看上去是的

Copy link
Member Author

Choose a reason for hiding this comment

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

应该是 prettier 的 maxWidth

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.

[Bug]微应用中在异步回调中动态插入的脚本,无法正确地被沙箱代理
2 participants