blob: 464a80f84c0f945973e57aec322e56540549bf88 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
// Copyright (C) 2020 Alexey Shvayka. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-IsHTMLDDA-internal-slot-typeof
description: >
`typeof` operator returns "undefined" for [[IsHTMLDDA]] object.
info: |
Changes to the typeof Operator
The following table entry is inserted into Table 35 immediately
preceeding the entry for "Object (implements [[Call]])":
Type of val: Object (has an [[IsHTMLDDA]] internal slot)
Result: "undefined"
features: [IsHTMLDDA]
---*/
var IsHTMLDDA = $262.IsHTMLDDA;
assert(typeof IsHTMLDDA === "undefined", '=== "undefined"');
assert.sameValue(typeof IsHTMLDDA, "undefined");
assert(typeof IsHTMLDDA !== "object", '!== "object"');
assert.sameValue(typeof IsHTMLDDA === "object", false, '!== "object"');
assert(typeof IsHTMLDDA !== "function", '!== "function"');
assert.sameValue(typeof IsHTMLDDA === "function", false, '!== "function"');
reportCompare(0, 0);
|