Skip to content

Improve the “unable to find key” warning

Compare
Choose a tag to compare
@cherifGsoul cherifGsoul released this 19 Aug 15:11
· 10 commits to master since this release

Improves the missing key warning by logging of the property that can read for example:

var context = { foo: true };

var scope = new Scope(context);
var scopeKeyData = scope.computeData("foo.length", {
   warnOnMissingKey: true
});

scopeKeyData.read();  // -> Unable to find key "foo.length". Found "foo" with value: true