[static private] Unify loose handling of static and instance props (#8614)

This commit is contained in:
Nicolò Ribaudo
2018-09-04 08:10:46 +02:00
committed by GitHub
parent 262787bd92
commit d4e23b5b2a
11 changed files with 102 additions and 144 deletions

View File

@@ -1054,15 +1054,6 @@ helpers.classPrivateFieldSet = helper("7.0.0-beta.0")`
}
`;
helpers.classStaticPrivateFieldLooseBase = helper("7.0.1")`
export default function _classStaticPrivateFieldLooseBase(receiver, classConstructor) {
if (receiver !== classConstructor) {
throw new TypeError("Private static access of wrong provenance");
}
return classConstructor;
}
`;
helpers.classStaticPrivateFieldSpecGet = helper("7.0.1")`
export default function _classStaticPrivateFieldSpecGet(
receiver, classConstructor, privateClass, privateId