timimahoney / decaf

Ruby in the browser.
http://trydecaf.org
470 stars 8 forks source link

DOMClass#dup and related methods crash the app. #5

Closed senthilnayagam closed 11 years ago

senthilnayagam commented 11 years ago

I was looking for programmatically open new window from console

$window.dup crashes the app every time

senthilnayagam commented 11 years ago

same behaviour with $window.clone as well

timimahoney commented 11 years ago

Ruby in the browser uses the same API as JavaScript, so the way to do it would be with window.open. However, that doesn't seem to work! I'll check it out.

That said, dup and clone shouldn't work for the DOM objects, but they shouldn't crash either. On DOM classes, dup and clone should either be undefined or redefined to something useful.

Thanks for the report!

senthilnayagam commented 11 years ago

Hi Tim,

yeah I agree, you can redefine all those crash causing code for now, till you figure out a solution.

I have started adding my experience to wiki page, hope you dont mind, creating 2 pages to begin with "getting started" and "feature requests"

I want to know what standard library is included, that will help me choose a small project to explore all capabilities

another crash I could simulate was since bigint is not available if you try multiplying 2 large integers 1234567890*9876543210 the app would crash

Senthil

timimahoney commented 11 years ago

Thanks for the contributions to the Wiki! I'm going to keep it restricted to collaborators for now. You can make feature requests by making a new issue here and tagging it with the "feature" tag.

timimahoney commented 11 years ago

The dup and clone methods are now no longer available on WebKit objects. This is fixed on the 0.1.2 branch right now.