Add tests for bug 632778, take two. r=jorendorff

This commit is contained in:
Gary Kwong 2012-06-22 19:00:15 -07:00
parent 20310bbc6d
commit 34e8707ffb
2 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,7 @@
load(libdir + "asserts.js");
function f() {
"use strict";
}
g = wrap(f);
assertThrowsInstanceOf(function () { Object.defineProperty(g, "arguments", {set: function(){}}); }, TypeError);

View File

@ -0,0 +1,4 @@
load(libdir + "asserts.js");
obj = wrap(Number.bind());
assertThrowsInstanceOf(function () { Object.defineProperty(obj, "caller", {set: function(){}}); }, TypeError);