Skip to content

Commit 24a87f4

Browse files
committed
lib: rename withSuppressionsContext to withBypassContext in diagnostics_channel
Signed-off-by: Divyanshu Sharma <divyanshu88999@gmail.com>
1 parent 993bc0d commit 24a87f4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/diagnostics_channel.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function getBypassStorage() {
4646
return bypassStorage;
4747
}
4848

49-
function withSuppressionsContext(set, fn, thisArg, args) {
49+
function withBypassContext(set, fn, thisArg, args) {
5050
return getBypassStorage().run(
5151
set,
5252
() => ReflectApply(fn, thisArg, args),
@@ -784,7 +784,7 @@ function bypass(key, fn, thisArg, ...args) {
784784
const currentSet = getBypassStorage().getStore();
785785
const next = currentSet ? new SafeSet(currentSet) : new SafeSet();
786786
next.add(key);
787-
return withSuppressionsContext(next, fn, thisArg, args);
787+
return withBypassContext(next, fn, thisArg, args);
788788
}
789789

790790
module.exports = {

0 commit comments

Comments
 (0)