File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ const defaultMethods = {
111111 if ( type === 'NaN' ) return Number . NaN
112112 return { error : type }
113113 } ,
114- throws : ( item ) => {
114+ panic : ( item ) => {
115115 if ( Array . isArray ( item ) ) item = item [ 0 ]
116116 if ( Number . isNaN ( item ) ) throw new Error ( 'NaN was returned from expression' )
117117 if ( item && item . error ) throw item . error
@@ -967,7 +967,7 @@ defaultMethods['!!'].compile = function (data, buildState) {
967967defaultMethods . none . deterministic = defaultMethods . some . deterministic
968968
969969// @ts -ignore Allowing a optimizeUnary attribute that can be used for performance optimizations
970- defaultMethods [ '+' ] . optimizeUnary = defaultMethods [ '-' ] . optimizeUnary = defaultMethods [ '!' ] . optimizeUnary = defaultMethods [ '!!' ] . optimizeUnary = defaultMethods . cat . optimizeUnary = defaultMethods . error . optimizeUnary = defaultMethods . throws . optimizeUnary = true
970+ defaultMethods [ '+' ] . optimizeUnary = defaultMethods [ '-' ] . optimizeUnary = defaultMethods [ '!' ] . optimizeUnary = defaultMethods [ '!!' ] . optimizeUnary = defaultMethods . cat . optimizeUnary = defaultMethods . error . optimizeUnary = defaultMethods . panic . optimizeUnary = true
971971
972972export default {
973973 ...defaultMethods ,
You can’t perform that action at this time.
0 commit comments