diff options
Diffstat (limited to 'lib/js')
-rw-r--r-- | lib/js/jsre.nim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/js/jsre.nim b/lib/js/jsre.nim index 31cfa3d0b..b4f273d0b 100644 --- a/lib/js/jsre.nim +++ b/lib/js/jsre.nim @@ -1,6 +1,9 @@ ## Regular Expressions for the JavaScript target. ## * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions +when not defined(js) and not defined(Nimdoc): + {.error: "This module only works on the JavaScript platform".} + type RegExp* {.importjs.} = object ## Regular Expressions for JavaScript target. flags* {.importjs.}: cstring ## cstring that contains the flags of the RegExp object. dotAll* {.importjs.}: bool ## Whether `.` matches newlines or not. |