Skip to main content

ClassBrandId

Type Alias ClassBrandId 

Source
pub type ClassBrandId = u32;
Expand description

Unique identifier for a private field/method.

Private fields in JavaScript are “branded” - two classes can both have a field named #x, but they are different fields. Each class gets a unique ClassBrandId, and a PrivateFieldKey combines this with the field name.