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 = {
111
111
if ( type === 'NaN' ) return Number . NaN
112
112
return { error : type }
113
113
} ,
114
- throws : ( item ) => {
114
+ panic : ( item ) => {
115
115
if ( Array . isArray ( item ) ) item = item [ 0 ]
116
116
if ( Number . isNaN ( item ) ) throw new Error ( 'NaN was returned from expression' )
117
117
if ( item && item . error ) throw item . error
@@ -967,7 +967,7 @@ defaultMethods['!!'].compile = function (data, buildState) {
967
967
defaultMethods . none . deterministic = defaultMethods . some . deterministic
968
968
969
969
// @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
971
971
972
972
export default {
973
973
...defaultMethods ,
You can’t perform that action at this time.
0 commit comments