Skip to content
This repository was archived by the owner on Sep 19, 2018. It is now read-only.

Commit 682462a

Browse files
zhaobin2016Ms2ger
authored andcommitted
check if promise object has then property with in operator
1 parent 7bc5fb0 commit 682462a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

idlharness.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ IdlArray.prototype.assert_type_is = function(value, type)
463463
}
464464

465465
if (type.generic === "Promise") {
466-
assert_own_property(value, "then", "Attribute with a Promise type has a then property");
466+
assert_true("then" in value, "Attribute with a Promise type has a then property");
467467
// TODO: Ideally, we would check on project fulfillment
468468
// that we get the right type
469469
// but that would require making the type check async

0 commit comments

Comments
 (0)