Implement function.toString operation (#4752)
May increase the memory consumtpion heavily. JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
This commit is contained in:
@@ -14,4 +14,6 @@
|
||||
|
||||
var str = 'for (let i=0; i<(eval("1; function x() { }; 2;")); x - i++) { x += delete x;}'
|
||||
|
||||
assert(eval(str) === 'function(){/* ecmascript */}true');
|
||||
var e = eval(str)
|
||||
assert(e === 'function x() { }true'
|
||||
|| e === 'function () { /* ecmascript */ }true');
|
||||
|
||||
Reference in New Issue
Block a user