Bug 632778 - Update tests to use test metalines instead, since they are in jit-test.

This commit is contained in:
Gary Kwong 2012-07-20 23:03:56 -07:00
parent 8cfca23402
commit b6cc0050fb
2 changed files with 4 additions and 6 deletions

View File

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

View File

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