Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(551)

Unified Diff: node_modules/vulcanize/node_modules/uglify-js/node_modules/source-map/lib/source-map/base64-vlq.js

Issue 800513006: Added vulcanize under third_party/npm_modules (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: node_modules/vulcanize/node_modules/uglify-js/node_modules/source-map/lib/source-map/base64-vlq.js
diff --git a/node_modules/karma/node_modules/source-map/lib/source-map/base64-vlq.js b/node_modules/vulcanize/node_modules/uglify-js/node_modules/source-map/lib/source-map/base64-vlq.js
similarity index 95%
copy from node_modules/karma/node_modules/source-map/lib/source-map/base64-vlq.js
copy to node_modules/vulcanize/node_modules/uglify-js/node_modules/source-map/lib/source-map/base64-vlq.js
index b4ff136b586fefbe9aba3926ab9ab7b979b421d0..1b67bb375f9b4f47924ed06f863e23fd5004e175 100644
--- a/node_modules/karma/node_modules/source-map/lib/source-map/base64-vlq.js
+++ b/node_modules/vulcanize/node_modules/uglify-js/node_modules/source-map/lib/source-map/base64-vlq.js
@@ -115,9 +115,9 @@ define(function (require, exports, module) {
/**
* Decodes the next base 64 VLQ value from the given string and returns the
- * value and the rest of the string via the out parameter.
+ * value and the rest of the string.
*/
- exports.decode = function base64VLQ_decode(aStr, aOutParam) {
+ exports.decode = function base64VLQ_decode(aStr) {
var i = 0;
var strLen = aStr.length;
var result = 0;
@@ -135,8 +135,10 @@ define(function (require, exports, module) {
shift += VLQ_BASE_SHIFT;
} while (continuation);
- aOutParam.value = fromVLQSigned(result);
- aOutParam.rest = aStr.slice(i);
+ return {
+ value: fromVLQSigned(result),
+ rest: aStr.slice(i)
+ };
};
});

Powered by Google App Engine
This is Rietveld 408576698