You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
464 B

function Bar ( x ) {
console.log( 'side effect' );
this.value = x;
}
function Baz ( x ) {
this[ console.log( 'side effect' ) ] = x;
}
function Qux ( x ) {
this.value = console.log( 'side effect' );
}
function Corge ( x ) {
this.value = x;
}
var Arrow = ( x ) => {
undefined.value = x;
};
console.log( 'before' );
var bar = new Bar(5);
var baz = new Baz(5);
var qux = new Qux(5);
var corge = Corge(5);
var arrow = new Arrow(5);
console.log( 'after' );