Debian Codegraph @

js/src/jit-test/tests/cacheir/typeof-proxy.js

raw
1 function test() {
2 var funs = [function() {}, new Proxy(function() {}, {}), wrapWithProto(function() {}, null), new Proxy(createIsHTMLDDA(), {})];
3 var objects = [{}, new Proxy({}, {}), wrapWithProto({}, null)];
4 var undefs = [createIsHTMLDDA(), wrapWithProto(createIsHTMLDDA(), null)];
5
6 for (var fun of funs) {
7 assertEq(typeof fun, "function")
8 }
9
10 for (var obj of objects) {
11 assertEq(typeof obj, "object");
12 }
13
14 for (var undef of undefs) {
15 assertEq(typeof undef, "undefined");
16 }
17 }
18
19 test();