StackOverflow while setting property of recursively defined class
Reported by
gksgudtj...@gmail.com,
Jul 21
|
||
Issue description
UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36
Steps to reproduce the problem:
Execute attached JavaScript code
What is the expected behavior?
What went wrong?
class c{}
for(var i =0; i < 312260; i++){
c = (class extends c {});
}
c.x = 42
Crashed report ID:
How much crashed? Just one tab
Is it a problem with a plugin? No
Did this work before? N/A
Chrome version: 67.0.3396.99 Channel: stable
OS Version: 10.0
Flash Version:
If recursive definition of class c is not in the loop, it is okay. But, if it is in the loop (maybe jitted?), it crashes with StackOverflow.
,
Jul 23
|
||
►
Sign in to add a comment |
||
Comment 1 by woxxom@gmail.com
, Jul 21213 bytes
213 bytes View Download