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

Object.getOwnProeprtyDescriptor is showing a lot of deprecation warnings in chrome #5

Closed
gkatsev opened this issue Sep 24, 2015 · 7 comments
Assignees
Labels

Comments

@gkatsev
Copy link

gkatsev commented Sep 24, 2015


This line specifically: https://github.com/component/merge-descriptors/blob/master/index.js#L52
It should probably check for those and not get those at that point.

@dougwilson
Copy link
Contributor

What the heck object are you trying to clone? Hopefully you are not trying to clone a window object.

We definitely cannot put in a blacklist of property names, because it would break older browsers where those are not deprecated and are necessary.

Any proposed solution?

@gkatsev
Copy link
Author

gkatsev commented Sep 24, 2015

I am using proxyquireify to mock out global/window in a module. So, I guess I am cloning window? The usage is in the linked PR videojs/video.js#2633

@gkatsev
Copy link
Author

gkatsev commented Sep 24, 2015

I do not currently have a proposed solution other than maybe do UA switching for when to blacklist those. But that's really ugly.

@dougwilson
Copy link
Contributor

Gotcha. Unfortunately I have no experience on the front end and will have to rely on you or someone else to propose a fix or PR, if there is a desire to D something regarding the warnings getting printed on the console (which is not harmful, just annoying).

@gkatsev
Copy link
Author

gkatsev commented Sep 24, 2015

Yeah, definitely not harmful. I'll have to think about it some more to see if I can think of a better way of fixing this.

@dougwilson dougwilson self-assigned this Jan 17, 2016
@dougwilson
Copy link
Contributor

Hi @gkatsev , I'm going to close this issue for now, since I don't think any progress has been made. I skimmed around the C++ source for Chromium to see if there was a way to tell from JavaScript-land if a property was deprecated and not try to get the property descriptor for that property, but it doesn't seem to have any way.

@gkatsev
Copy link
Author

gkatsev commented Jan 18, 2016

Sounds good to me. Thanks @dougwilson. I may even just remove this test because it isn't useful enough to worry about this weirdness. However, if I do come up with a good solution, I'll definitely ping you.

Also, I wanted to say thanks for all your hard work on everything you maintain @dougwilson!

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

No branches or pull requests

2 participants