--- parser3/tests/results/auto.p 2016/10/09 21:33:04 1.9 +++ parser3/tests/results/auto.p 2024/12/13 20:32:11 1.24 @@ -21,7 +21,7 @@ $NO_PROTOTYPE[ ^if($env:PATH_TRANSLATED eq '357.html'){ $LIMITS[ $.max_loop(50) - $.max_recoursion(50) + $.max_recursion(50) ] } ^if($env:PATH_TRANSLATED eq '358.html'){ @@ -30,7 +30,28 @@ $NO_PROTOTYPE[ $.max_recoursion(0) ] } +^if($env:PATH_TRANSLATED eq '380.html' || $env:PATH_TRANSLATED eq '394-curl.html' ){ + $LIMITS[ + $.max_file_size(10000) + ] +} + +^if($env:PATH_TRANSLATED eq '403.html'){ + $MIME-TYPES[^table::create{ext mime-type +txt text/plain +html text/html +}] +} +^if($env:PATH_TRANSLATED eq '409.html'){ + $LOCALS(true) +} + +^if($env:PATH_TRANSLATED eq '410.html'){ + $CLASS-GETTER-PROTECTED(false) +} + +^os[;]{ ^curl:options[ $.library[libcurl.4.dylib] ] } @auto[] @@ -38,9 +59,25 @@ $NO_PROTOTYPE[ @try-catch[jCode] ^try{$jCode}{ $exception.handled(true) - Type: $exception.type, + Exception type: $exception.type, Source: $exception.source, - Comment: $exception.comment + Comment: ^taint[as-is;$exception.comment] +} + + +@try-catch-filtered[jCode;limit] +^try{$jCode}{ + $exception.handled(true) + Exception type: $exception.type, + Source: $exception.source^if(def $limit){, + Comment: ^exception.comment.left($limit)} +} + + +@try-catch-comment[jCode] +^try{$jCode}{ + $exception.handled(true) + Exception: ^taint[as-is;$exception.comment] } @@ -60,3 +97,7 @@ $response:charset[windows-1251] # backward @windows-1251[] ^1251[] + +@os[win;unix;mac][name] +$name[^env:OS.left(7)] +$result[^if(^name.lower[] eq 'windows'){$win}{^if(def $mac && ^env:HOME.left(6) eq '/Users'){$mac;$unix}}]