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.

38 lines
716 B

(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory() :
typeof define === 'function' && define.amd ? define(factory) :
(factory());
}(this, (function () { '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' );
})));