Clean up functions when disposed #443
Annotations
10 errors and 1 warning
src/quickjs.test.ts > QuickJSContext > quickjs-ng RELEASE_SYNC > .evalCode > can access assigned globals:
packages/quickjs-emscripten/src/quickjs.test.ts#L601
AssertionError: 0 == 3
- Expected
+ Received
- 3
+ 0
❯ src/quickjs.test.ts:601:14
❯ src/quickjs.test.ts:87:17
❯ Function.withScopeAsync ../quickjs-emscripten-core/src/lifetime.ts:314:20
❯ src/quickjs.test.ts:86:21
|
src/quickjs.test.ts > QuickJSContext > quickjs-ng RELEASE_SYNC > properties > defining a property does not leak:
packages/quickjs-emscripten/src/quickjs.test.ts#L320
AssertionError: 'Hello undefined' == 'Hello World'
Expected: "Hello World"
Received: "Hello undefined"
❯ src/quickjs.test.ts:320:14
❯ src/quickjs.test.ts:87:17
❯ Function.withScopeAsync ../quickjs-emscripten-core/src/lifetime.ts:314:20
❯ src/quickjs.test.ts:86:21
|
src/quickjs.test.ts > QuickJSContext > DEBUG sync module > .newPromise() > passes an end-to-end test:
packages/quickjs-emscripten-core/src/context.ts#L1297
TypeError: cannot read property 'then' of undefined
❯ QuickJSContext.unwrapResult ../quickjs-emscripten-core/src/context.ts:1297:27
❯ src/quickjs.test.ts:1044:10
❯ src/quickjs.test.ts:87:17
❯ Function.withScopeAsync ../quickjs-emscripten-core/src/lifetime.ts:314:20
❯ src/quickjs.test.ts:86:21
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { context: { type: 'QuickJSContext', __vitest__: true, alive: true } }
Caused by: TypeError: cannot read property 'then' of undefined
|
src/quickjs.test.ts > QuickJSContext > DEBUG sync module > .executePendingJobs > runs pending jobs:
packages/quickjs-emscripten/src/quickjs.test.ts#L748
AssertionError: 0 == 3
- Expected
+ Received
- 3
+ 0
❯ src/quickjs.test.ts:748:14
❯ src/quickjs.test.ts:87:17
❯ Function.withScopeAsync ../quickjs-emscripten-core/src/lifetime.ts:314:20
❯ src/quickjs.test.ts:86:21
|
src/quickjs.test.ts > QuickJSContext > DEBUG sync module > .evalCode > can access assigned globals:
packages/quickjs-emscripten/src/quickjs.test.ts#L601
AssertionError: 0 == 3
- Expected
+ Received
- 3
+ 0
❯ src/quickjs.test.ts:601:14
❯ src/quickjs.test.ts:87:17
❯ Function.withScopeAsync ../quickjs-emscripten-core/src/lifetime.ts:314:20
❯ src/quickjs.test.ts:86:21
|
src/quickjs.test.ts > QuickJSContext > DEBUG sync module > properties > defining a property does not leak:
packages/quickjs-emscripten/src/quickjs.test.ts#L320
AssertionError: 'Hello undefined' == 'Hello World'
Expected: "Hello World"
Received: "Hello undefined"
❯ src/quickjs.test.ts:320:14
❯ src/quickjs.test.ts:87:17
❯ Function.withScopeAsync ../quickjs-emscripten-core/src/lifetime.ts:314:20
❯ src/quickjs.test.ts:86:21
|
src/quickjs.test.ts > QuickJSContext > QuickJS.newContext > .newPromise() > passes an end-to-end test:
packages/quickjs-emscripten-core/src/context.ts#L1297
TypeError: cannot read property 'then' of undefined
❯ QuickJSContext.unwrapResult ../quickjs-emscripten-core/src/context.ts:1297:27
❯ src/quickjs.test.ts:1044:10
❯ src/quickjs.test.ts:87:17
❯ Function.withScopeAsync ../quickjs-emscripten-core/src/lifetime.ts:314:20
❯ src/quickjs.test.ts:86:21
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { context: { type: 'QuickJSContext', __vitest__: true, alive: true } }
Caused by: Caused by: TypeError: cannot read property 'then' of undefined
|
src/quickjs.test.ts > QuickJSContext > QuickJS.newContext > .executePendingJobs > runs pending jobs:
packages/quickjs-emscripten/src/quickjs.test.ts#L748
AssertionError: 0 == 3
- Expected
+ Received
- 3
+ 0
❯ src/quickjs.test.ts:748:14
❯ src/quickjs.test.ts:87:17
❯ Function.withScopeAsync ../quickjs-emscripten-core/src/lifetime.ts:314:20
❯ src/quickjs.test.ts:86:21
|
src/quickjs.test.ts > QuickJSContext > QuickJS.newContext > .evalCode > can access assigned globals:
packages/quickjs-emscripten/src/quickjs.test.ts#L601
AssertionError: 0 == 3
- Expected
+ Received
- 3
+ 0
❯ src/quickjs.test.ts:601:14
❯ src/quickjs.test.ts:87:17
❯ Function.withScopeAsync ../quickjs-emscripten-core/src/lifetime.ts:314:20
❯ src/quickjs.test.ts:86:21
|
src/quickjs.test.ts > QuickJSContext > QuickJS.newContext > properties > defining a property does not leak:
packages/quickjs-emscripten/src/quickjs.test.ts#L320
AssertionError: 'Hello undefined' == 'Hello World'
Expected: "Hello World"
Received: "Hello undefined"
❯ src/quickjs.test.ts:320:14
❯ src/quickjs.test.ts:87:17
❯ Function.withScopeAsync ../quickjs-emscripten-core/src/lifetime.ts:314:20
❯ src/quickjs.test.ts:86:21
|
build (ubuntu-latest)
The process '/usr/bin/git' failed with exit code 128
|