Back to Chromium

Construct Global Object

third_party/blink/web_tests/fast/js/construct-global-object.html

149.0.7827.2434 B
Original Source

This page tests which object prototype is used when calling "new" across windows. If the test passes, you'll see a series of PASS messages below.

"); frames[0].document.close(); var o = new frames[0].O; shouldBe(o instanceof frames[0].Object, "o instanceof frames[0].Object", true); shouldBe(o.__proto__.__proto__ === frames[0].Object.prototype, "o.__proto__.__proto__ === frames[0].Object.prototype", true);