Permalink
Browse files

js/parsing: Fix to make it work again.

  • Loading branch information...
1 parent 26ad9f8 commit b9bbbb9676efb98be01806add5f82b4e1e00ee93 @ariya committed Dec 24, 2013
Showing with 4 additions and 6 deletions.
  1. +3 −5 js/parsing/index.html
  2. +1 −1 js/parsing/parsing.js
View
8 js/parsing/index.html
@@ -3,11 +3,9 @@
<meta name="viewport" content="width=device-width maximum-scale=1 initial-scale=1 user-scalable=no">
<link rel="stylesheet" type="text/css" href="../../style.css"/>
<script src="parsing.js"></script>
-<script src="https://raw.github.com/ariya/esprima/master/esprima.js"></script>
-<script src="https://raw.github.com/mishoo/UglifyJS2/master/lib/utils.js"></script>
-<script src="https://raw.github.com/mishoo/UglifyJS2/master/lib/ast.js"></script>
-<script src="https://raw.github.com/mishoo/UglifyJS2/master/lib/parse.js"></script>
-<script src="https://raw.github.com/bestiejs/benchmark.js/master/benchmark.js"></script>
+<script src="http://esprima.org/esprima.js"></script>
+<script src="http://lisperator.net/s/js/uglifyjs/uglify.js"></script>
+<script src="http://esprima.org/test/3rdparty/benchmark.js"></script>
</head>
<body>
<h1>Parsing Speed Test</h1>
View
2 js/parsing/parsing.js
@@ -98,7 +98,7 @@ function runOther() {
window.tree = [];
fn = function () {
- var syntax = window.parse(window.data);
+ var syntax = UglifyJS.parse(window.data);
window.tree.push(syntax.body.length);
};

0 comments on commit b9bbbb9

Please sign in to comment.