js2py icon indicating copy to clipboard operation
js2py copied to clipboard

TypeError: this.source.charCodeAt is not a function

Open zaoqi opened this issue 6 years ago • 0 comments


TypeError: this.source.charCodeAt is not a function
    at Scanner.scanComments (/home/1828_sandbox/src/the-language/core/arch/py/node_modules/esprima/dist/esprima.js:5298:35)
    at Parser.collectComments (/home/1828_sandbox/src/the-language/core/arch/py/node_modules/esprima/dist/esprima.js:2002:27)
    at Parser.nextToken (/home/1828_sandbox/src/the-language/core/arch/py/node_modules/esprima/dist/esprima.js:2073:15)
    at new Parser (/home/1828_sandbox/src/the-language/core/arch/py/node_modules/esprima/dist/esprima.js:1916:15)
    at Object.parse (/home/1828_sandbox/src/the-language/core/arch/py/node_modules/esprima/dist/esprima.js:120:19)

    at Object.<anonymous> (/home/1828_sandbox/src/the-language/core/arch/py/node_modules/py2js/js2py.coffee:646:20)
    at Object.<anonymous> (/home/1828_sandbox/src/the-language/core/arch/py/node_modules/py2js/js2py.coffee:1:1)
    at Module._compile (internal/modules/cjs/loader.js:799:30)
    at Object.CoffeeScript.run (/home/1828_sandbox/src/the-language/core/arch/py/node_modules/coffeescript/lib/coffeescript/index.js:67
:23)
    at compileScript (/home/1828_sandbox/src/the-language/core/arch/py/node_modules/coffeescript/lib/coffeescript/command.js:265:29)
    at compilePath (/home/1828_sandbox/src/the-language/core/arch/py/node_modules/coffeescript/lib/coffeescript/command.js:220:14)
    at Object.exports.run (/home/1828_sandbox/src/the-language/core/arch/py/node_modules/coffeescript/lib/coffeescript/command.js:141:2
0)
    at Object.<anonymous> (/home/1828_sandbox/src/the-language/core/arch/py/node_modules/coffeescript/bin/coffee:22:45)
    at Module._compile (internal/modules/cjs/loader.js:799:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:810:10)
    at Module.load (internal/modules/cjs/loader.js:666:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:606:12)
    at Function.Module._load (internal/modules/cjs/loader.js:598:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:862:12)
    at findNodeScript.then.existing (/usr/lib/node_modules/npm/node_modules/libnpx/index.js:268:14)

zaoqi avatar Mar 09 '19 07:03 zaoqi