-
Notifications
You must be signed in to change notification settings - Fork 65
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
window.openFileDialog()'s list has objects with no properties #87
Comments
The issue is not related to The problem is that The documentation for
It turns out that listing the properties with Pure JS example : var Demo = function() { this.foo = "foo"; }
Demo.prototype.bar = "bar"
var d = new Demo();
console.log(Object.keys(d)); // Will only list "foo"
console.log(Object.getOwnPropertyNames(d)); // Will list "foo" and "bar" properties @paraboul any thoughts ? |
When using the
window.openFileDialog()
API, the returned list that the callback receives as a parameter is an empty object with no keys and no values.Both
Object.keys()
andObject.values()
return empty Arrays. When stringifying the entries themselves, they are just empty objects ({}
). I was trying to figure out myself what was going on inside theX11UIInterface.cpp/h
files, but to be honest I have no clue how the memory looks like and how to properly convert/verify the data there.Tested system: Up-to-date archlinux, with GNOME3 stable.
The text was updated successfully, but these errors were encountered: