public static JSTimer InitTimer(this JSValue globalObject) { JSTimer result = new JSTimer(globalObject.ServiceNode); globalObject.WriteProperty <JSTimer>("timer", result); return(result); }
public static void InitTimer(this JSValue globalObject) { globalObject.WriteProperty <JSTimer>("timer", new JSTimer(globalObject.ServiceNode)); }