blob: 00630898acacdcff3b2006b268ff93c2f6cd6882 [file] [log] [blame]
function shouldBe(actual, expected) {
if (actual !== expected)
throw new Error('bad value: ' + actual);
}
var names = [
'global',
'ignoreCase',
'multiline',
'source',
];
for (var name of names) {
var descriptor = Object.getOwnPropertyDescriptor(RegExp.prototype, name);
shouldBe(descriptor.get.name, 'get ' + name);
}