Nicolò Ribaudo 60ef190d05
Define class elements in the correct order (#12723)
* Define class elements in the correct order

* Object.gOPDescriptors is not available on Node.js 6

* Handle numeric keys

* Update test

* Update fixtures
2021-02-02 02:22:16 +01:00

7 lines
82 B
JavaScript

class Foo {
foo() {}
"foo"() { "second" }
[bar]() {}
[bar + "foo"]() {}
}