diff --git a/CHANGELOG.md b/CHANGELOG.md index 90a28319..381a9db5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,12 +3,14 @@ ## v0.24.0 - [#127](https://github.com/justjake/quickjs-emscripten/pull/127) Upgrade to quickjs 2023-12-09: + - added Object.hasOwn, {String|Array|TypedArray}.prototype.at, {Array|TypedArray}.prototype.findLast{Index} - BigInt support is enabled even if CONFIG_BIGNUM disabled - updated to Unicode 15.0.0 - misc bug fixes - [#125](https://github.com/justjake/quickjs-emscripten/pull/125) (thanks to @tbrockman): + - Synchronizes quickjs to include the recent commit to address CVE-2023-31922. - [#111](https://github.com/justjake/quickjs-emscripten/pull/111) (thanks to @yourWaifu) ArrayBuffer and binary json encoding: diff --git a/ts/quickjs.test.ts b/ts/quickjs.test.ts index 522c85e6..7d2a46ee 100644 --- a/ts/quickjs.test.ts +++ b/ts/quickjs.test.ts @@ -989,7 +989,7 @@ function asyncContextTests(getContext: () => Promise) { it("is enough to support at least 20 levels of function nesting", async () => { // The nesting levels of the test cannot be too high, otherwise the // node.js call stack will overflow when executing `yarn test` - const buildName = isBuildDebug(vm) ? 'debug' : 'release' + const buildName = isBuildDebug(vm) ? "debug" : "release" const EXPECTED_NESTING_LEVEL = isBuildDebug(vm) ? 19 : 20 let asyncFunctionCalls = 0 @@ -1001,8 +1001,7 @@ function asyncContextTests(getContext: () => Promise) { ) try { - - await vm.evalCodeAsync(` + await vm.evalCodeAsync(` let nestingLevels = 0 function nestingFn() { nestingLevels++ @@ -1014,11 +1013,17 @@ function asyncContextTests(getContext: () => Promise) { nestingFn(); `) } catch (error) { - (error as Error).message += `\nasync calls: ${asyncFunctionCalls} (expected ${EXPECTED_NESTING_LEVEL})` + ;( + error as Error + ).message += `\nasync calls: ${asyncFunctionCalls} (expected ${EXPECTED_NESTING_LEVEL})` throw error } - assert.equal(asyncFunctionCalls, EXPECTED_NESTING_LEVEL, `${EXPECTED_NESTING_LEVEL} levels of nesting for ${buildName} build`) + assert.equal( + asyncFunctionCalls, + EXPECTED_NESTING_LEVEL, + `${EXPECTED_NESTING_LEVEL} levels of nesting for ${buildName} build` + ) }) }) }