(token)
| 2402 | } |
| 2403 | |
| 2404 | function isReserved(token) { |
| 2405 | if (!token.reserved) { |
| 2406 | return false; |
| 2407 | } |
| 2408 | var meta = token.meta; |
| 2409 | |
| 2410 | if (meta && meta.isFutureReservedWord && state.option.inES5()) { |
| 2411 | if (!meta.es5) { |
| 2412 | return false; |
| 2413 | } |
| 2414 | if (meta.strictOnly) { |
| 2415 | if (!state.option.strict && !state.directive["use strict"]) { |
| 2416 | return false; |
| 2417 | } |
| 2418 | } |
| 2419 | |
| 2420 | if (token.isProperty) { |
| 2421 | return false; |
| 2422 | } |
| 2423 | } |
| 2424 | |
| 2425 | return true; |
| 2426 | } |
| 2427 | |
| 2428 | function supplant(str, data) { |
| 2429 | return str.replace(/\{([^{}]*)\}/g, function (a, b) { |
no outgoing calls
no test coverage detected