Skip to content

Commit

Permalink
fix: fix $.raw context
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub committed Jun 26, 2022
1 parent a440251 commit 41e6add
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/main/js/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,7 @@ export const $ = new DeepProxy(_$, ({DEFAULT, target: t, trapName, args}) => {

export const ctx = (cb, ref = $.bind(null)) => _ctx(cb, ref)

$.raw = async (...args) => {
const q = $.quote
$.quote = v => v
try {
return $(...args)
} finally {
$.quote = q
}
}
$.raw = async (...args) => $.o({quote: v => v})(...args)

// https://github.com/google/zx/pull/134
$.silent = async (...args) => quiet($(...args))
Expand Down

0 comments on commit 41e6add

Please sign in to comment.