28 lines
574 B
HTML
28 lines
574 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<body>
|
|
<script src="../../resources/js-test-pre.js"></script>
|
|
<script>
|
|
|
|
description("Tests what happens when you make prototype chain accesses with impure GetOwnPropertySlot traps in the way.");
|
|
|
|
var obj = {};
|
|
obj.__proto__ = document;
|
|
|
|
function f() {
|
|
return obj.getElementsByTagName;
|
|
}
|
|
|
|
dfgShouldBe(f, "typeof f()", "\"function\"");
|
|
|
|
var img = new Image();
|
|
img.name = "getElementsByTagName";
|
|
document.body.appendChild(img);
|
|
|
|
shouldBe("typeof f()", "\"object\"");
|
|
|
|
</script>
|
|
<script src="../../resources/js-test-post.js"></script>
|
|
</body>
|
|
</html>
|