public static class InternalJsStringMap extends Object
Map
-like semantics where
the key type is string.
Implementation notes:
String keys are mapped to their values via a JS associative map. String keys could collide with
intrinsic properties (like watch, constructor). To avoid that; InternalJsStringMap
) uses
Object.create(null)
so it doesn't inherit any properties. For legacy browsers where
Object.create
is not available, InternalJsStringMapLegacy
prepends each key with
a ':' while storing.
Copyright © 2018. All rights reserved.