restructuring of stdlibs
This commit is contained in:
13
lib/src/polyfills/classPrivateFieldLooseKey.js
Normal file
13
lib/src/polyfills/classPrivateFieldLooseKey.js
Normal file
@@ -0,0 +1,13 @@
|
||||
import { print, self, symbol } from "../stdlib/primordials.ts";
|
||||
import { Object } from "../stdlib/values/object.ts";
|
||||
|
||||
self.Object = {
|
||||
defineProperty: function (obj, key, desc) {
|
||||
if (obj == null) return obj;
|
||||
Object.defineProperty(obj, key, desc);
|
||||
}
|
||||
};
|
||||
|
||||
export default function _classPrivateFieldLooseKey(key) {
|
||||
return symbol.makeSymbol(key);
|
||||
}
|
||||
Reference in New Issue
Block a user