Skip to content

Does not support ember-source@3.13.0 #111

@jelhan

Description

@jelhan

Tests are failing for ember-source@3.13.0. I'm seeing two different errors thrown by seven tests:

            Error: Assertion Failed: computed decorators must return an instance of an Ember ComputedProperty descriptor, received function COMPUTED_DECORATOR(target, key, propertyDesc, maybeMeta, isClassicDecorator$$1) {
                  (true && !(true
                  /* EMBER_NATIVE_DECORATOR_SUPPORT */
                  || isClassicDecorator$$1) && (0, _debug.assert)('Native decorators are not enabled without the EMBER_NATIVE_DECORATOR_SUPPORT flag', true || isClassicDecorator$$1));
                  (true && !(isClassicDecorator$$1 || !propertyDesc || !propertyDesc.get || propertyDesc.get.toString().indexOf('CPGETTER_FUNCTION') === -1) && (0, _debug.assert)(`Only one computed property decorator can be applied to a class field or accessor, but '${key}' was decorated twice. You may have added the decorator to both a getter and setter, which is unecessary.`, isClassicDecorator$$1 || !propertyDesc || !propertyDesc.get || propertyDesc.get.toString().indexOf('CPGETTER_FUNCTION') === -1));
                  var meta$$1 = arguments.length === 3 ? (0, _meta2.meta)(target) : maybeMeta;
                  desc.setup(target, key, propertyDesc, meta$$1);
                  var computedDesc = {
                    enumerable: desc.enumerable,
                    configurable: desc.configurable,
                    get: DESCRIPTOR_GETTER_FUNCTION(key, desc)
                  };
                  {
                    computedDesc.set = DESCRIPTOR_SETTER_FUNCTION(key, desc);
                  }
                  return computedDesc;
                }
                at Object.assert (http://localhost:7357/assets/vendor.js:37147:15)
                at initializeComputedProperty (http://localhost:7357/assets/vendor.js:68426:82)
                at Object.runClassFinishers (http://localhost:7357/assets/vendor.js:64523:49)
                at _decorate (http://localhost:7357/assets/vendor.js:64269:16)
                at Object.<anonymous> (http://localhost:7357/assets/tests.js:6414:42)
                at runTest (http://localhost:7357/assets/test-support.js:4433:30)
                at Test.run (http://localhost:7357/assets/test-support.js:4419:6)
                at http://localhost:7357/assets/test-support.js:4640:12
                at advanceTaskQueue (http://localhost:7357/assets/test-support.js:4032:6)
                at advance (http://localhost:7357/assets/test-support.js:4013:4)
            TypeError: Cannot set property prop of [object Object] which has only a getter
                at setWithMandatorySetter (http://localhost:7357/assets/vendor.js:32281:24)
                at set (http://localhost:7357/assets/vendor.js:16332:45)
                at Object.set (http://localhost:7357/assets/vendor.js:28880:29)
                at Object.<anonymous> (http://localhost:7357/assets/tests.js:6618:13)
                at runTest (http://localhost:7357/assets/test-support.js:4433:30)
                at Test.run (http://localhost:7357/assets/test-support.js:4419:6)
                at http://localhost:7357/assets/test-support.js:4640:12
                at advanceTaskQueue (http://localhost:7357/assets/test-support.js:4032:6)
                at advance (http://localhost:7357/assets/test-support.js:4013:4)
                at advanceTestQueue (http://localhost:7357/assets/test-support.js:4058:4)

I'm seeing the second error also at ember-yeti-table which uses this addon: miguelcobain/ember-yeti-table#81

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions