Skip to content

Conversation

@RCmerci
Copy link
Contributor

@RCmerci RCmerci commented Jan 17, 2024

example:
image

export result:

asdf
```clojure
(defn- make-push-assets-update-ops-timeout-ch
  [repo never-timeout?]
  (if never-timeout?
    (chan)
    (go
      (<! (async/timeout 2000))
      ;; TODO: get-unpushed-assets-update-count
      (pos? (op-mem-layer/get-unpushed-asset-update-count repo)))))
```
```
var d                        = require("../")
  , getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;

module.exports = function (t, a) {
	var Foo = function () {}, i = 1, o, o2, desc;
	Object.defineProperties(
		Foo.prototype,
		t({
			bar: d(function () { return ++i; }),
			bar2: d(function () { return this.bar + 23; }),
			bar3: d(function () { return this.bar2 + 34; }, { desc: "ew" }),
			bar4: d(function () { return this.bar3 + 12; }, { cacheName: "_bar4_" }),
			bar5: d(function () { return this.bar4 + 3; }, { cacheName: "_bar5_", desc: "e" })
		})
	);


```

Copy link
Collaborator

@andelf andelf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

I've added a simple test case.

@andelf andelf merged commit 477d541 into master Jan 17, 2024
@andelf andelf deleted the fix/no-indent-block-src branch January 17, 2024 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants