BESEN ES5 implementation

  • Thread starter Dmitry A. Soshnikov
  • Start date
B

BeRo

Noticed one glitch:

(function(x){
   print('0' in arguments); // throws error but shouldn't

})(1);

And shouldn't these 2 be identical?

print(function(){
  "use strict"; return this}.call(void 0)); // object

print(function(){
   "use strict"; return this}.call(undefined)); // undefined

...strange as `print(void 0 === undefined)` prints `true`

I've fixed this now. This both was just a bytecode generator bug in
the register allocator (a small stupid typing error). You can find the
newest version at http://besen.sourceforge.net/ in the SVN.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,079
Messages
2,570,574
Members
47,207
Latest member
HelenaCani

Latest Threads

Top