Last active
August 29, 2015 14:12
-
-
Save sebmarkbage/b407e9604bc862051110 to your computer and use it in GitHub Desktop.
Google DCE Method
This file contains hidden or 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
// ==ClosureCompiler== | |
// @compilation_level ADVANCED_OPTIMIZATIONS | |
// @output_file_name default.js | |
// ==/ClosureCompiler== | |
/** | |
* @constructor | |
*/ | |
function Foo(name) { | |
this.name = name; | |
} | |
Foo.prototype.foo = function() { | |
return this.name; | |
} | |
window.x = new Foo('test'); |
This file contains hidden or 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
window.x=new function(a){this.name=a}("test"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment