Commit 964f213e authored by Gabriel Ivăncescu's avatar Gabriel Ivăncescu Committed by Alexandre Julliard

mshtml/tests: Test RegExp.toString on object with separate RegExp flag props.

parent c0e8f166
......@@ -2147,6 +2147,12 @@ sync_test("builtins_diffs", function() {
}catch(e) {
ok(e.number === 0xa1398 - 0x80000000, "RegExp.toString with non-regexp: exception = " + e.number);
}
try {
RegExp.prototype.toString.call({source: "abc", global: true, ignoreCase: true, multiline: true});
ok(false, "RegExp.toString with non-regexp 2: expected exception");
}catch(e) {
ok(e.number === 0xa1398 - 0x80000000, "RegExp.toString with non-regexp 2: exception = " + e.number);
}
try {
/a/.lastIndex();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment