mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
* clean * improve * tests * fix lint * old helpers * add fail test * fix * Update packages/babel-helpers/src/helpers/superPropGet.ts Co-authored-by: Nicolò Ribaudo <[email protected]> * review * fix lint * minVersion --------- Co-authored-by: Nicolò Ribaudo <[email protected]>
16 lines
247 B
JavaScript
16 lines
247 B
JavaScript
"use strict";
|
|
|
|
var _obj;
|
|
const Base = {
|
|
test: 1
|
|
};
|
|
const obj = _obj = {
|
|
test: 2,
|
|
get() {
|
|
return babelHelpers.superPropGet(_obj, "test", this);
|
|
}
|
|
};
|
|
Object.setPrototypeOf(obj, Base);
|
|
expect(obj.test).toBe(2);
|
|
expect(obj.get()).toBe(1);
|