()
| 919 | } |
| 920 | |
| 921 | parseObjectInitializer(): Node.ObjectExpression { |
| 922 | const node = this.createNode(); |
| 923 | |
| 924 | this.expect('{'); |
| 925 | const properties: Node.Property[] = []; |
| 926 | const hasProto = { value: false }; |
| 927 | while (!this.match('}')) { |
| 928 | properties.push(this.parseObjectProperty(hasProto)); |
| 929 | if (!this.match('}')) { |
| 930 | this.expectCommaSeparator(); |
| 931 | } |
| 932 | } |
| 933 | this.expect('}'); |
| 934 | |
| 935 | return this.finalize(node, new Node.ObjectExpression(properties)); |
| 936 | } |
| 937 | |
| 938 | // https://tc39.github.io/ecma262/#sec-template-literals |
| 939 |
no test coverage detected