Skip to content

Commit d5ee64b

Browse files
committed
explainer § Why: Examples from async and ajv
From #12 (comment). Thanks @theScottyJam.
1 parent c5d681e commit d5ee64b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,14 @@ return this._target()::isPending();
323323
var matchesPredicate = tryCatch(item).call(boundTo, e);
324324
var matchesPredicate = boundTo::(tryCatch(item))(e);
325325

326+
// async-3.0.1/internal/initialParams.js
327+
var callback = args.pop(); return fn.call(this, args, callback);
328+
var callback = args.pop(); return this::fn(args, callback);
329+
330+
// ajv-6.10.0/lib/ajv.js
331+
validate = macro.call(self, schema, parentSchema, it);
332+
validate = self::macro(schema, parentSchema, it);
333+
326334
// [email protected]/polyfills.js
327335
return fs$read.call(fs, fd, buffer, offset, length, position, callback)
328336
return fs::fs$read(fd, buffer, offset, length, position, callback)

0 commit comments

Comments
 (0)