public static void SetBuiltinProtoAndParent(ScriptableObject @object, Scriptable scope, TopLevel.Builtins type) { scope = ScriptableObject.GetTopLevelScope(scope); @object.SetParentScope(scope); @object.SetPrototype(TopLevel.GetBuiltinPrototype(scope, type)); }