[Pkg-javascript-commits] [node-source-map-support] 01/04: New upstream version 0.4.16+ds
Julien Puydt
julien.puydt at laposte.net
Fri Aug 18 08:21:40 UTC 2017
This is an automated email from the git hooks/post-receive script.
jpuydt-guest pushed a commit to branch master
in repository node-source-map-support.
commit 4d1cf55a66d53d325f5e4b83357f67811c18565d
Author: Julien Puydt <julien.puydt at laposte.net>
Date: Fri Aug 18 10:18:01 2017 +0200
New upstream version 0.4.16+ds
---
.travis.yml | 5 ++++-
README.md | 2 +-
package.json | 2 +-
source-map-support.js | 5 +++--
test.js | 2 +-
5 files changed, 10 insertions(+), 6 deletions(-)
diff --git a/.travis.yml b/.travis.yml
index 2a2f1c6..b49c5e3 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,5 +1,8 @@
language: node_js
node_js:
- - 'stable'
+ - '8'
+ - '7'
+ - '6'
+ - '4'
- '0.12'
- '0.10'
diff --git a/README.md b/README.md
index 8ac0300..0f51b5c 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
# Source Map Support
[![Build Status](https://travis-ci.org/evanw/node-source-map-support.svg?branch=master)](https://travis-ci.org/evanw/node-source-map-support)
-This module provides source map support for stack traces in node via the [V8 stack trace API](http://code.google.com/p/v8/wiki/JavaScriptStackTraceApi). It uses the [source-map](https://github.com/mozilla/source-map) module to replace the paths and line numbers of source-mapped files with their original paths and line numbers. The output mimics node's stack trace format with the goal of making every compile-to-JS language more of a first-class citizen. Source maps are completely general [...]
+This module provides source map support for stack traces in node via the [V8 stack trace API](https://github.com/v8/v8/wiki/Stack-Trace-API). It uses the [source-map](https://github.com/mozilla/source-map) module to replace the paths and line numbers of source-mapped files with their original paths and line numbers. The output mimics node's stack trace format with the goal of making every compile-to-JS language more of a first-class citizen. Source maps are completely general (not specif [...]
## Installation and Usage
diff --git a/package.json b/package.json
index 48ff760..53eefe4 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
{
"name": "source-map-support",
"description": "Fixes stack traces for files with source maps",
- "version": "0.4.15",
+ "version": "0.4.16",
"main": "./source-map-support.js",
"scripts": {
"build": "node build.js",
diff --git a/source-map-support.js b/source-map-support.js
index dca92bc..699fd22 100644
--- a/source-map-support.js
+++ b/source-map-support.js
@@ -331,8 +331,9 @@ function wrapCallSite(frame) {
// Fix position in Node where some (internal) code is prepended.
// See https://github.com/evanw/node-source-map-support/issues/36
- if (line === 1 && !isInBrowser() && !frame.isEval()) {
- column -= 62;
+ var headerLength = 62;
+ if (line === 1 && column > headerLength && !isInBrowser() && !frame.isEval()) {
+ column -= headerLength;
}
var position = mapSourcePosition({
diff --git a/test.js b/test.js
index d7c593d..4583581 100644
--- a/test.js
+++ b/test.js
@@ -238,7 +238,7 @@ it('native function', function() {
], [
'Error: 1',
/[/\\].original\.js/,
- /at Array\.map \(native\)/
+ /at Array\.map \((native|<anonymous>)\)/
]);
});
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-source-map-support.git
More information about the Pkg-javascript-commits
mailing list