Created
December 18, 2014 01:21
-
-
Save ahomu/21c0f4ae839f41263ea5 to your computer and use it in GitHub Desktop.
すげえ限定的なケースをちょっと比べてみただけなので、あまりに真にうけないでください.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import hoge from "fuga.js"; | |
function foo(bar = baz, ...qux) { | |
// something | |
} | |
class AcmeClass { | |
constructor() { | |
// wryy | |
} | |
acmeMethod() { | |
// uryy | |
} | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
System.registerModule("fuga.js", [], function() { | |
"use strict"; | |
var __moduleName = "fuga.js"; | |
var $__default = {}; | |
return {get default() { | |
return $__default; | |
}}; | |
}); | |
System.registerModule("hoge.js", [], function() { | |
"use strict"; | |
var __moduleName = "hoge.js"; | |
var hoge = System.get("fuga.js").default; | |
function foo() { | |
var bar = arguments[0] !== (void 0) ? arguments[0] : baz; | |
for (var qux = [], | |
$__2 = 1; $__2 < arguments.length; $__2++) | |
qux[$__2 - 1] = arguments[$__2]; | |
} | |
var AcmeClass = function AcmeClass() {}; | |
($traceurRuntime.createClass)(AcmeClass, {acmeMethod: function() {}}, {}); | |
return {}; | |
}); | |
System.get("hoge.js" + ''); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
var _slice = Array.prototype.slice; | |
var hoge = require("fuga.js").default; | |
function foo(bar) // something | |
{ | |
var qux = _slice.call(arguments, 1); | |
if (bar === undefined) | |
bar = baz; | |
} | |
var AcmeClass = function() { | |
var AcmeClass = function AcmeClass() // wryy | |
{ | |
// wryy | |
}; | |
Object.defineProperties(AcmeClass.prototype, { | |
acmeMethod: { | |
writable: true, | |
value: function() // uryy | |
{ | |
// uryy | |
} | |
} | |
}); | |
return AcmeClass; | |
}(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment