blob: 72eb9563d089e0db0e900f44a12ea98e0aafbfdf (
plain)
1
2
3
4
5
6
7
|
function run_test() {
var sandbox = Cu.Sandbox('http://www.example.com');
var regexp = Cu.evalInSandbox("/test/i", sandbox);
equal(RegExp.prototype.toString.call(regexp), "/test/i");
var prototype = Cu.evalInSandbox("RegExp.prototype", sandbox);
equal(typeof prototype.lastIndex, "undefined");
}
|