mirror of
https://github.com/swc-project/swc.git
synced 2024-12-21 12:41:54 +03:00
c6b22c57f8
Co-authored-by: Fábio Santos <fabiosantosart@gmail.com>
22 lines
317 B
JavaScript
22 lines
317 B
JavaScript
var a = (function () {
|
|
return this;
|
|
})();
|
|
function b() {
|
|
console.log("foo");
|
|
}
|
|
b.c = function () {
|
|
console.log(this === b ? "bar" : "baz");
|
|
};
|
|
(a, b)();
|
|
(a, b.c)();
|
|
(a,
|
|
function () {
|
|
console.log(this === a);
|
|
})();
|
|
new (a, b)();
|
|
new (a, b.c)();
|
|
new (a,
|
|
function () {
|
|
console.log(this === a);
|
|
})();
|