mobx 6.3.5 → 6.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3327,7 +3327,7 @@
3327
3327
 
3328
3328
  cancel = function cancel() {
3329
3329
  disposer();
3330
- reject("WHEN_CANCELLED");
3330
+ reject(new Error("WHEN_CANCELLED"));
3331
3331
  };
3332
3332
  });
3333
3333
  res.cancel = cancel;
@@ -3458,7 +3458,11 @@
3458
3458
  try {
3459
3459
  var _annotations;
3460
3460
 
3461
- // Default to decorators
3461
+ if ("development" !== "production" && annotations && target[storedAnnotationsSymbol]) {
3462
+ die("makeObservable second arg must be nullish when using decorators. Mixing @decorator syntax with annotations is not supported.");
3463
+ } // Default to decorators
3464
+
3465
+
3462
3466
  (_annotations = annotations) != null ? _annotations : annotations = collectStoredAnnotations(target); // Annotate
3463
3467
 
3464
3468
  ownKeys(annotations).forEach(function (key) {