[Pkg-javascript-commits] [node-browser-pack] 81/141: actually add the prelude this time

Bastien Roucariès rouca at moszumanska.debian.org
Thu May 4 10:23:27 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-browser-pack.

commit 9e0c033d1ad117f3cff2f897531f858db3dc3b51
Author: Roman Shtylman <shtylman at gmail.com>
Date:   Tue Dec 31 20:55:55 2013 -0500

    actually add the prelude this time
---
 index.js | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/index.js b/index.js
index befc1b2..8aed316 100644
--- a/index.js
+++ b/index.js
@@ -40,9 +40,11 @@ module.exports = function (opts) {
         
         if (row.sourceFile && !row.nomap) {
             if (!sourcemap) {
-                sourcemap = combineSourceMap.create(),
-                { sourceFile: preludePath, source: prelude },
-                { line: 0 }
+                sourcemap = combineSourceMap.create();
+                sourcemap.addFile(
+                    { sourceFile: preludePath, source: prelude },
+                    { line: 0 }
+                );
             }
             sourcemap.addFile(
                 { sourceFile: row.sourceFile, source: row.source },

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-browser-pack.git



More information about the Pkg-javascript-commits mailing list