mirror of
https://github.com/swc-project/swc.git
synced 2024-11-24 10:12:42 +03:00
12 lines
326 B
JavaScript
12 lines
326 B
JavaScript
import { _get_prototype_of } from "./_get_prototype_of.js";
|
|
|
|
export function _super_prop_base(object, property) {
|
|
while (!Object.prototype.hasOwnProperty.call(object, property)) {
|
|
object = _get_prototype_of(object);
|
|
if (object === null) break;
|
|
}
|
|
|
|
return object;
|
|
}
|
|
export { _super_prop_base as _ };
|