-
Notifications
You must be signed in to change notification settings - Fork 583
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
Rhino error: Changing attributes not supported for Function prototype property #1200
Comments
@johnjbarton @arv this error is in Traceur Runtime. Maybe we should wrap this code in |
@johnjbarton @arv if you agree with |
To me, this error is in Rhino, where the exception originates. |
Yeah, this is a Rhino bug. Try/catch seems bad. What does the prototype descriptor look like in Rhino? Maybe it is sane and says that configurable is already false, then we can use that to determine if this is safe. |
If Rhino throw this error, it already had |
The spec says that no error should be thrown when defineProperty has SameVaue for all fields. |
@arv what did you mean? |
The following should not be an error: var o = {};
Object.defineProperty(o, 'x', {
configurable: false,
writable: false,
value: 1,
});
Object.defineProperty(o, 'x', {
configurable: false,
writable: false,
}); since it all the keys in the descriptor are the same. |
Hi All we are upgrading to jQuery version 3.2.1 The reason may be Object.defineProperty is defined in JS 1.8 and rihno is in JS 1.7 can anyone of you help me to solve this ? |
When I try to run compiled JS and Rhino (to run Autoprefixer into Java) it fall with:
Line 13904 from this backtrace contains:
The text was updated successfully, but these errors were encountered: