Browse Source

added comments to object static vars

pull/18/head
Jason Williams 6 years ago
parent
commit
7fcc048cf2
  1. 3
      src/lib/js/object.rs

3
src/lib/js/object.rs

@ -2,7 +2,10 @@ use crate::js::function::NativeFunctionData;
use crate::js::value::{from_value, to_value, FromValue, ResultValue, ToValue, Value, ValueData}; use crate::js::value::{from_value, to_value, FromValue, ResultValue, ToValue, Value, ValueData};
use gc::Gc; use gc::Gc;
use std::collections::HashMap; use std::collections::HashMap;
/// Made for convenience, usually set on constructors as a key to point to their respective prototype object
pub static PROTOTYPE: &'static str = "prototype"; pub static PROTOTYPE: &'static str = "prototype";
/// Made for convenience, usually set on instances as a key to point to their respective prototype object
pub static INSTANCE_PROTOTYPE: &'static str = "__proto__"; pub static INSTANCE_PROTOTYPE: &'static str = "__proto__";
pub type ObjectData = HashMap<String, Property>; pub type ObjectData = HashMap<String, Property>;

Loading…
Cancel
Save