|
E9221 JavaScript Reserved Name
[Previous]  [Next] 
|
![]() |
User Manual [Previous]  [Next] E9221 JavaScript Reserved NameA name that JavaScript reserves or that generated code usesThe JavaScript generator reports this error, and does not generate the class, for a name it would have to bind:
Rename the element. Attributes, association role names, states and events are not concerned: generated code reaches them as properties and as method names, where any word is allowed. Example
// JavaScript cannot name a class delete, so generating JavaScript
// from this model reports E9221 and writes no file for the class
generate JavaScript;
class delete {
reason;
}
Load the above code into classic UmpleOnline Solution to The Above So the Message No Longer Appears
// A name JavaScript does not reserve is generated. A reserved word is
// still fine for an attribute or a role name, which are properties
generate JavaScript;
class Removal {
reason;
Boolean static;
}
Load the above code into classic UmpleOnline |