Module: wine Branch: master Commit: 964f213e19e57274a566e0d91e13143ec93d268f URL: https://gitlab.winehq.org/wine/wine/-/commit/964f213e19e57274a566e0d91e13143...
Author: Gabriel Ivăncescu gabrielopcode@gmail.com Date: Mon May 29 21:58:37 2023 +0300
mshtml/tests: Test RegExp.toString on object with separate RegExp flag props.
Signed-off-by: Gabriel Ivăncescu gabrielopcode@gmail.com
---
dlls/mshtml/tests/documentmode.js | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/dlls/mshtml/tests/documentmode.js b/dlls/mshtml/tests/documentmode.js index cd639712a9f..1a9f36927d0 100644 --- a/dlls/mshtml/tests/documentmode.js +++ b/dlls/mshtml/tests/documentmode.js @@ -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();