зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1253866 - Remove Proxy.create from crash tests. r=bz
This commit is contained in:
Родитель
10a4a51386
Коммит
c1175e55e5
|
@ -6,7 +6,7 @@
|
|||
|
||||
function K(v) { return function() { return v; } }
|
||||
|
||||
var errorProxy = Proxy.create({get: function() { throw new Error(); }});
|
||||
var errorProxy = new Proxy({}, {get: function() { throw new Error(); }});
|
||||
|
||||
function boom()
|
||||
{
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
var nodeList = document.documentElement.childNodes;
|
||||
nodeList.__proto__ = null;
|
||||
var p = Proxy.create({getPropertyDescriptor: function() {return nodeList}});
|
||||
p.x;
|
||||
var p = new Proxy({}, {getOwnPropertyDescriptor: function() {return nodeList}});
|
||||
Reflect.getOwnPropertyDescriptor(p, "x");
|
||||
|
||||
</script>
|
||||
|
|
|
@ -1,18 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<script>
|
||||
|
||||
function boom()
|
||||
{
|
||||
var a = document.getElementsByTagName("div");
|
||||
a.__proto__ = Proxy.create({has: function() { throw new Error; }});
|
||||
for (var p in a) {
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body onload="boom();"></body>
|
||||
</html>
|
|
@ -143,7 +143,6 @@ load 700090-1.html
|
|||
load 700090-2.html
|
||||
load 700512.html
|
||||
load 706283-1.html
|
||||
load 708405-1.html
|
||||
load 709384.html
|
||||
load 709954.html
|
||||
load 713417-1.html
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<script>
|
||||
HTMLElement.prototype.__proto__ = Proxy.create({}, {});
|
||||
HTMLElement.prototype.__proto__ = new Proxy({}, {});
|
||||
try {
|
||||
window.Image;
|
||||
} finally {
|
||||
|
|
Загрузка…
Ссылка в новой задаче