mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
27 lines
733 B
HTML
27 lines
733 B
HTML
<!DOCTYPE HTML>
|
|
<html>
|
|
<head>
|
|
<meta charset='utf-8'/>
|
|
<title>Console Test for Closure Inspection</title>
|
|
<!-- Any copyright is dedicated to the Public Domain.
|
|
http://creativecommons.org/publicdomain/zero/1.0/ -->
|
|
<script type="text/javascript">
|
|
function injectPerson() {
|
|
var PersonFactory = function _pfactory(name) {
|
|
var foo = 10;
|
|
return {
|
|
getName: function() { return name; },
|
|
getFoo: function() { foo = Date.now(); return foo; }
|
|
};
|
|
};
|
|
window.george = new PersonFactory("George");
|
|
debugger;
|
|
}
|
|
</script>
|
|
|
|
</head>
|
|
<body>
|
|
<button onclick="injectPerson()">Test</button>
|
|
</body>
|
|
</html>
|