Skip to content
Snippets Groups Projects
Unverified Commit f4f23cb0 authored by Leo Balter's avatar Leo Balter
Browse files

Set a proper length reference to avoid conflict with browsers

In browsers length is a valid property of window, so they would have a normal
completion instead of a ReferenceError
parent f6175af5
No related branches found
No related tags found
No related merge requests found
......@@ -18,6 +18,8 @@ info: |
[...]
---*/
//- setup
let length = "outer";
//- elems
[...{ 0: v, 1: w, 2: x, 3: y, length: z }]
//- vals
......@@ -29,6 +31,4 @@ assert.sameValue(x, 9);
assert.sameValue(y, undefined);
assert.sameValue(z, 3);
assert.throws(ReferenceError, function() {
length;
});
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment