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.
@@ -3321,7 +3321,7 @@ function whenPromise(predicate, opts) {
3321
3321
 
3322
3322
  cancel = function cancel() {
3323
3323
  disposer();
3324
- reject("WHEN_CANCELLED");
3324
+ reject(new Error("WHEN_CANCELLED"));
3325
3325
  };
3326
3326
  });
3327
3327
  res.cancel = cancel;
@@ -3452,7 +3452,11 @@ function makeObservable(target, annotations, options) {
3452
3452
  try {
3453
3453
  var _annotations;
3454
3454
 
3455
- // Default to decorators
3455
+ if ("development" !== "production" && annotations && target[storedAnnotationsSymbol]) {
3456
+ die("makeObservable second arg must be nullish when using decorators. Mixing @decorator syntax with annotations is not supported.");
3457
+ } // Default to decorators
3458
+
3459
+
3456
3460
  (_annotations = annotations) != null ? _annotations : annotations = collectStoredAnnotations(target); // Annotate
3457
3461
 
3458
3462
  ownKeys(annotations).forEach(function (key) {