-
Notifications
You must be signed in to change notification settings - Fork 4
Closed
Labels
Description
What happened?
When trying to use asserts, the Playground fails with
Your snippet is trying to perform an unauthorized operation!
Code:
assert "Hello".equals("Hello")or alternatively
boolean a(){
return true;
}
assert a();or even
assert false;OS
Linux
What browsers are you seeing the problem on?
Firefox
Contact Details (optional)
No response
Additional information
I guess this is because of the call to Class#desiredAssertionStatus since method calls in java.lang.Class are not allowed. I think it would make sense to allow that specific method.
Reactions are currently unavailable
