Property expressions must not be blank

This commit is contained in:
Nick O'Leary
2017-01-06 21:58:17 +00:00
parent c989c533e8
commit 73a41707e5
3 changed files with 7 additions and 0 deletions

View File

@@ -133,6 +133,9 @@ function normalisePropertyExpression(str) {
// in editor/js/ui/utils.js
var length = str.length;
if (length === 0) {
throw new Error("Invalid property expression: zero-length");
}
var parts = [];
var start = 0;
var inString = false;