mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 20:05:49 +00:00
Add tests for bug 632778, take two. r=jorendorff
This commit is contained in:
parent
20310bbc6d
commit
34e8707ffb
7
js/src/jit-test/tests/basic/bug632778-1.js
Normal file
7
js/src/jit-test/tests/basic/bug632778-1.js
Normal 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);
|
||||
|
4
js/src/jit-test/tests/basic/bug632778-2.js
Normal file
4
js/src/jit-test/tests/basic/bug632778-2.js
Normal file
@ -0,0 +1,4 @@
|
||||
load(libdir + "asserts.js");
|
||||
obj = wrap(Number.bind());
|
||||
assertThrowsInstanceOf(function () { Object.defineProperty(obj, "caller", {set: function(){}}); }, TypeError);
|
||||
|
Loading…
Reference in New Issue
Block a user