(options)
| 5377 | // 11.1.5 Object Initialiser |
| 5378 | |
| 5379 | function parsePropertyFunction(options) { |
| 5380 | var previousStrict, previousYieldAllowed, previousAwaitAllowed, |
| 5381 | params, defaults, body, marker = markerCreate(); |
| 5382 | |
| 5383 | previousStrict = strict; |
| 5384 | previousYieldAllowed = state.yieldAllowed; |
| 5385 | state.yieldAllowed = options.generator; |
| 5386 | previousAwaitAllowed = state.awaitAllowed; |
| 5387 | state.awaitAllowed = options.async; |
| 5388 | params = options.params || []; |
| 5389 | defaults = options.defaults || []; |
| 5390 | |
| 5391 | body = parseConciseBody(); |
| 5392 | if (options.name && strict && isRestrictedWord(params[0].name)) { |
| 5393 | throwErrorTolerant(options.name, Messages.StrictParamName); |
| 5394 | } |
| 5395 | strict = previousStrict; |
| 5396 | state.yieldAllowed = previousYieldAllowed; |
| 5397 | state.awaitAllowed = previousAwaitAllowed; |
| 5398 | |
| 5399 | return markerApply(marker, delegate.createFunctionExpression( |
| 5400 | null, |
| 5401 | params, |
| 5402 | defaults, |
| 5403 | body, |
| 5404 | options.rest || null, |
| 5405 | options.generator, |
| 5406 | body.type !== Syntax.BlockStatement, |
| 5407 | options.async, |
| 5408 | options.returnType, |
| 5409 | options.typeParameters |
| 5410 | )); |
| 5411 | } |
| 5412 | |
| 5413 | |
| 5414 | function parsePropertyMethodFunction(options) { |
no test coverage detected