From 7fcc048cf2de0f2780e7265f0a2b6f746cac442c Mon Sep 17 00:00:00 2001 From: Jason Williams Date: Fri, 22 Mar 2019 17:50:07 +0000 Subject: [PATCH] added comments to object static vars --- src/lib/js/object.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/js/object.rs b/src/lib/js/object.rs index 26ca85d4a5..83bdaf321e 100644 --- a/src/lib/js/object.rs +++ b/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 gc::Gc; 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"; +/// 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 type ObjectData = HashMap;