Skip to content

Commit 2713ee9

Browse files
committed
character encoding
1 parent d16f350 commit 2713ee9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/instrumentation/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ Instrumentation.prototype._startHook = function () {
291291
if (!isHandlingLambda && basedir) {
292292
pkg = path.join(basedir, 'package.json')
293293
try {
294-
version = JSON.parse(fs.readFileSync(pkg)).version
294+
version = JSON.parse(fs.readFileSync(pkg, 'utf8')).version
295295
} catch (e) {
296296
self._agent.logger.debug('could not shim %s module: %s', name, e.message)
297297
return exports

0 commit comments

Comments
 (0)