minor fixes for node20 (#22894)

This commit is contained in:
ringabout
2023-11-01 01:49:23 +08:00
committed by GitHub
parent f61311f7a0
commit 2ae344f1c2
2 changed files with 3 additions and 3 deletions

View File

@@ -73,8 +73,8 @@ jobs:
- task: NodeTool@0
inputs:
versionSpec: '16.x'
displayName: 'Install node.js 16.x'
versionSpec: '20.x'
displayName: 'Install node.js 20.x'
condition: and(succeeded(), eq(variables['skipci'], 'false'))
- bash: |

View File

@@ -18,7 +18,7 @@ try:
except JsEvalError:
doAssert false
except JsSyntaxError as se:
doAssert se.message == "Unexpected token ; in JSON at position 0"
doAssert se.message == "Unexpected token ';', \";;\" is not valid JSON"
except JsError as e:
doAssert false