Bug 845569 - Land tests for various bugs. r=terrence

This commit is contained in:
Gary Kwong 2013-02-27 10:40:01 -08:00
parent 239da2d4cf
commit dcf70892da
3 changed files with 40 additions and 0 deletions

View File

@ -0,0 +1,8 @@
// |jit-test| error: InternalError
let k
Proxy.createFunction(function() {
return {
get: Uint32Array
}
}(), decodeURIComponent) & k

View File

@ -0,0 +1,16 @@
// |jit-test| error: TypeError
x = [];
Object.defineProperty(this, "y", {
get: function() {
FakeDOMObject.caller
}
});
Object.defineProperty(x, 3, {
get: function() {
y[13];
}
});
(function() {
x.shift();
})();

View File

@ -0,0 +1,16 @@
// |jit-test| error: TypeError
x = [];
Object.defineProperty(this, "y", {
get: function() {
print.caller
}
});
Object.defineProperty(x, 3, {
get: function() {
y[13];
}
});
(function() {
x.shift();
})();