Closed chihsuan closed 6 months ago
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 14 days.
When I try this locally, the new location is node_modules/locutus/php/_helpers/_bc.js
and it seems to not suffer from this:
'use strict';
module.exports = function _bc() {
// discuss at: https://locutus.io/php/_helpers/_bc
// original by: lmeyrick (https://sourceforge.net/projects/bcmath-js/)
// improved by: Brett Zamir (https://brett-zamir.me)
// example 1: var $bc = _bc()
// example 1: var $result = $bc.PLUS
// returns 1: '+'
Closing as resolved in the meantime
Description
An invalid JS syntax found in the released '_locutus_shared/_locutus_shared_bc.js' line 6:
To reproduce:
npm install locutus
node_modules/locutus/php/_locutus_shared/_locutus_shared_bc.js
I think somehow an additional newline is added to the line 5.
Version: locutus@2.0.16 OS: MacOS