mirror of https://github.com/lukechilds/rollup.git
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.
33 lines
479 B
33 lines
479 B
8 years ago
|
'use strict';
|
||
|
|
||
|
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' );
|