Skip to content

Commit b98f122

Browse files
committed
Update to latest uglify-js@1 from npm
This removed an old bundled version of UglifyJS and updates to the latest version in uglify-js@1 branch from npm. Line numbers are fixed in uglify-js itself, so this.line++; hack was removed. Closes: #3 Closes: #5
1 parent 53b8921 commit b98f122

File tree

4 files changed

+3
-1319
lines changed

4 files changed

+3
-1319
lines changed

gulpfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const iife = require('gulp-iife');
99

1010
const sources = [
1111
'src/header.js',
12-
'src/parse-js.js',
12+
'node_modules/uglify-js/lib/parse-js.js',
1313
'src/api.js',
1414
];
1515

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
"gulp-uglify": "^1.5.2",
1717
"istanbul": "^0.4.3",
1818
"tap-spec": "^4.1.1",
19-
"tape": "^4.5.1"
19+
"tape": "^4.5.1",
20+
"uglify-js": "^1.3.5"
2021
},
2122
"scripts": {
2223
"test": "gulp build; tape ./tests/tape.js",

src/api.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ function clone(obj){
7272

7373
function QMLParseError(message, line, col, pos, comment) {
7474
JS_Parse_Error.call(this, message, line, col, pos);
75-
this.line++;
7675
this.comment = comment ? comment : "";
7776
this.message += " (line: " + this.line + ", col: " + col + ", pos: " + pos + ")" + "\n" + comment + "\n";
7877
this.file = qmlweb_parse.nowParsingFile;

0 commit comments

Comments
 (0)