Skip to content

Commit aadf436

Browse files
committed
Fix for SyntaxError in Bun runtime (Issue #1707)
1 parent 6d8c4d2 commit aadf436

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

doc/src/release_notes.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ node-oracledb `v6.7.1 <https://github.com/oracle/node-oracledb/compare/v6.7.0...
1414
Common Changes
1515
++++++++++++++
1616

17+
#) Fixed SyntaxError with Bun runtime.
18+
See `Issue #1707 <https://github.com/oracle/node-oracledb/issues/1707>`__.
19+
1720
#) Fixed bug that may cause runtime issues in some JavaScript frameworks.
1821
See `Issue #1706 <https://github.com/oracle/node-oracledb/issues/1706>`__.
1922

lib/util.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,7 @@ function traceExitFn(traceContext, result, err) {
171171
}
172172

173173
// Fill the traceContext.
174-
if (err) {
175-
traceContext.error = Object.assign(({}, err));
176-
}
174+
traceContext.error = err;
177175
traceContext.additionalConfig.result = result;
178176
if (this._impl) {
179177
// fill function call state.

0 commit comments

Comments
 (0)