Debian Codegraph @

test/browser-iframe.html

raw
1 <!doctype html>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <title>Cross-Realm isPlainObject()</title>
6 <script>
7
8 function Foo() {this.abc = {};};
9
10 // Should return true with isPlainObject()
11 var trues = [
12 Object.create({}),
13 Object.create(Object.prototype),
14 {foo: 'bar'},
15 {},
16 Object.create(null)
17 ];
18
19 // Should return false with isPlainObject()
20 var falses = [
21 /foo/,
22 function() {},
23 1,
24 ['foo', 'bar'],
25 [],
26 new Foo,
27 null
28 ];
29
30 </script>
31 </head>
32 <body></body>
33 </html>