We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93ca163 commit 4666bf7Copy full SHA for 4666bf7
src/lib/libcore.js
@@ -2482,13 +2482,11 @@ addToLibrary({
2482
$ASSERTIONS: {{{ ASSERTIONS }}},
2483
});
2484
2485
-function autoAddDeps(object, name) {
2486
- for (var item in object) {
2487
- if (!item.endsWith('__deps')) {
2488
- if (!object[item + '__deps']) {
2489
- object[item + '__deps'] = [];
2490
- }
2491
- object[item + '__deps'].push(name);
+function autoAddDeps(lib, name) {
+ for (const item of Object.keys(lib)) {
+ if (!isDecorator(item)) {
+ lib[item + '__deps'] ??= [];
+ lib[item + '__deps'].push(name);
2492
}
2493
2494
0 commit comments