jalangi2 icon indicating copy to clipboard operation
jalangi2 copied to clipboard

Bug: Boxed primitives are unboxed as eval-results.

Open esbena opened this issue 9 years ago • 0 comments

Source:

var x = new Boolean(true)
var y = eval(new Boolean(true))
console.log(x);
console.log(y);

Uninstrumented/instrumented difference:

$ node test.js
[Boolean: true]
[Boolean: true]
$ node src/js/commands/jalangi.js test.js 
[Boolean: true]
true

esbena avatar Jul 14 '15 21:07 esbena