* Define class elements in the correct order * Object.gOPDescriptors is not available on Node.js 6 * Handle numeric keys * Update test * Update fixtures
13 lines
185 B
JavaScript
13 lines
185 B
JavaScript
class A {
|
|
get x() {}
|
|
x() {}
|
|
set x(_) {}
|
|
}
|
|
|
|
expect(Object.getOwnPropertyDescriptors(A.prototype)).toMatchObject({
|
|
x: {
|
|
get: undefined,
|
|
set: expect.any(Function),
|
|
}
|
|
});
|