(x, y)
| 33426 | } |
| 33427 | |
| 33428 | function assert_null_string_or_array(x, y) { |
| 33429 | switch(typeof x) { |
| 33430 | case 'string': if(y !== x) { |
| 33431 | unexpected('expected `'+x+'`, got '+y+'\n'+token.data); |
| 33432 | } return !errored |
| 33433 | |
| 33434 | case 'object': if(x && x.indexOf(y) === -1) { |
| 33435 | unexpected('expected one of `'+x.join('`, `')+'`, got '+y); |
| 33436 | } return !errored |
| 33437 | } |
| 33438 | return true |
| 33439 | } |
| 33440 | |
| 33441 | // stative ---------------------------- |
| 33442 |