ratel-core icon indicating copy to clipboard operation
ratel-core copied to clipboard

Support getter/setter syntax

Open Brooooooklyn opened this issue 5 years ago • 0 comments

var a = {
 _foo: 1,
 get foo () {
  return this._foo
 }
}

Error: Unexpected token at 3:6 1 | var a = { 2 | _foo: 1,> 3 | get foo () { | ^^^ 4 | return this._foo 5 | }Unexpected token at 3:11 1 | var a = { 2 | _foo: 1,> 3 | get foo () { | ^ 4 | return this._foo 5 | }Unexpected token at 5:3 3 | get foo () { 4 | return this._foo> 5 | } | ^ 6 | }

Brooooooklyn avatar May 29 '20 05:05 Brooooooklyn