-
Notifications
You must be signed in to change notification settings - Fork 148
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
ReadOnly ScriptMember still writable according to getOwnPropertyDescriptor #585
Comments
Hi @lukewarlow,
Host objects always return The problem is that the JavaScript and .NET type systems are very different. There are .NET scenarios that JavaScript descriptors don't cover – e.g., write-only properties – and cases where a .NET property's meta-information can't be determined upfront – e.g., situations involving custom setters and dynamic objects.
No, ClearScript maps all .NET exceptions to JavaScript's
No, but you can use the facade pattern or JavaScript's Good luck! |
When setting a HostObject's property to be readonly to script, the descriptor from getOwnPropertyDescriptor() still says that the property is writable?
Results in
I would have expected descriptor.writable to be false?
I would also expect the exception to be a TypeError?
Is there a way to define a property as being non-writable in the javascript sense using attributes like this?
The text was updated successfully, but these errors were encountered: