Skip to content

Commit

Permalink
Update the configurability of interface objects' length.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ms2ger committed Oct 25, 2014
1 parent ca0fde3 commit abab9e1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions idlharness.js
Original file line number Diff line number Diff line change
Expand Up @@ -1026,23 +1026,23 @@ IdlInterface.prototype.test_self = function()

if (!this.is_callback()) {
test(function() {
// This function tests WebIDL as of 2013-08-25.
// http://dev.w3.org/2006/webapi/WebIDL/#es-interface-call
// This function tests WebIDL as of 2014-10-25.
// https://heycam.github.io/webidl/#es-interface-call

assert_own_property(window, this.name,
"window does not have own property " + format_value(this.name));

// "Interface objects for non-callback interfaces MUST have a
// property named “length” with attributes { [[Writable]]: false,
// [[Enumerable]]: false, [[Configurable]]: false } whose value is
// [[Enumerable]]: false, [[Configurable]]: true } whose value is
// a Number."
assert_own_property(window[this.name], "length");
var desc = Object.getOwnPropertyDescriptor(window[this.name], "length");
assert_false("get" in desc, this.name + ".length has getter");
assert_false("set" in desc, this.name + ".length has setter");
assert_false(desc.writable, this.name + ".length is writable");
assert_false(desc.enumerable, this.name + ".length is enumerable");
assert_false(desc.configurable, this.name + ".length is configurable");
assert_true(desc.configurable, this.name + ".length is not configurable");

var constructors = this.extAttrs
.filter(function(attr) { return attr.name == "Constructor"; });
Expand Down

0 comments on commit abab9e1

Please sign in to comment.