Remove Deprecated jsre func (#19551)

* Remove Deprecated jsre func

* Remove Deprecated jsre func

* ReStart CI, because OSX is dumb and I have no permission to restart
This commit is contained in:
Juan Carlos
2022-02-25 01:43:35 -08:00
committed by GitHub
parent 9a49451124
commit fe791c67b4
2 changed files with 1 additions and 5 deletions

View File

@@ -43,7 +43,7 @@ becomes an alias for `addr`.
- Changed mimedb to use an `OrderedTable` instead of `OrderedTableRef`, to use it in a const.
- Removed deprecated `jsre.test` and `jsre.toString`.
- Removed deprecated `math.c_frexp`.

View File

@@ -47,10 +47,6 @@ func toCstring*(self: RegExp): cstring {.importjs: "#.toString()".}
func `$`*(self: RegExp): string = $toCstring(self)
func test*(self: RegExp; pattern: cstring): bool {.importjs: "#.test(#)", deprecated: "Use contains instead".}
func toString*(self: RegExp): cstring {.importjs: "#.toString()", deprecated: "Use toCstring instead".}
func contains*(pattern: cstring; self: RegExp): bool =
## Tests for a substring match in its string parameter.
runnableExamples: