zzsoszz / base2

Automatically exported from code.google.com/p/base2
0 stars 0 forks source link

Packer is broken in Rhino #91

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. java -cp lib/js.jar org.mozilla.javascript.tools.shell.Main pack.js 
example.js example-p.js

What is the expected output? What do you see instead?
I expect a packed file, example-p.js to be created.  Instead, rhino dies:
js: uncaught JavaScript runtime exception: ReferenceError: "_" is not defined.

js: uncaught JavaScript runtime exception: TypeError: Cannot read property 
"namespace" from 
undefined

js: uncaught JavaScript runtime exception: ReferenceError: "RegGrp" is not 
defined.

js: uncaught JavaScript runtime exception: ReferenceError: "forEach" is not 
defined.

What version of the product are you using? On what operating system?
Packer 3.1 alpha 4 (from r224) on Rhino 1.7R1 on  Mac OS X 10.5.3.

Please provide any additional information below.
Using the base2.js from trunk/lib/src/base2.js results in a different error (in 
this case, I slightly 
modified pack.js to aid in debugging.  Line 19 is the line containing 
packer.pack()):
js: "packer/base2.js", line 689: uncaught JavaScript runtime exception: js: 
"packer/base2.js", line 
689: uncaught JavaScript runtime exception: TypeError: Cannot read property 
"length" from 
undefined
    at packer/base2.js:689
    at packer/base2.js:363
    at packer/base2.js:518
    at packer/base2.js:906 (forEach)
    at packer/base2.js:362
    at packer/base2.js:318 (_moduleMethod)
    at packer/base2.js:684
    at packer/base2.js:649
    at packer/Packer.js:22
    at packer/Packer.js:30
    at packer/rhino/pack.js:19

Original issue reported on code.google.com by lem...@gmail.com on 16 Jun 2008 at 8:19

Attachments:

GoogleCodeExporter commented 9 years ago
Regression:
r113: pack.js, using lib/src/base2.js works
r120: rhino will not load lib/src/base2.js
js: uncaught JavaScript runtime exception: TypeError: Cannot convert null to an 
object.
r158: rhino will not load src/apps/packer/base2.js
js: uncaught JavaScript runtime exception: TypeError: Cannot convert null to an 
object.
r205: rhino will load lib/src/base2.js
r205: rhino will not load src/apps/packer/base2.js
js: uncaught JavaScript runtime exception: ReferenceError: "_" is not defined.
r205: pack.js, using lib/src/base2.js fails
js: uncaught JavaScript runtime exception: TypeError: Cannot read property 
"length" from undefined

Original comment by lem...@gmail.com on 21 Jun 2008 at 4:33

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Packer 3.1 is finished. This bug will be fixed in that version.

Original comment by dean.edw...@gmail.com on 8 Oct 2008 at 1:43