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

Issue 2164903004: Eagerly format traces in captureStackTrace (Closed)

Created:
4 years, 5 months ago by jgruber
Modified:
4 years, 5 months ago
Reviewers:
Yang
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Eagerly format traces in captureStackTrace This allows us to skip complicated logic for setting the accessors. BUG= Committed: https://crrev.com/4feafee9d9741259e8ec3882fb61935a235ecc54 Cr-Commit-Position: refs/heads/master@{#37969}

Patch Set 1 #

Patch Set 2 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -78 lines) Patch
M src/accessors.cc View 1 chunk +0 lines, -18 lines 0 comments Download
M src/builtins/builtins-error.cc View 1 2 chunks +12 lines, -56 lines 0 comments Download
M src/isolate.cc View 1 2 chunks +2 lines, -4 lines 0 comments Download
M src/messages.h View 1 1 chunk +5 lines, -0 lines 0 comments Download
M src/messages.cc View 1 1 chunk +17 lines, -0 lines 0 comments Download
M test/mjsunit/stack-traces.js View 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (10 generated)
jgruber
4 years, 5 months ago (2016-07-21 13:56:30 UTC) #4
Yang
On 2016/07/21 13:56:30, jgruber wrote: lgtm.
4 years, 5 months ago (2016-07-21 15:59:12 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2164903004/1
4 years, 5 months ago (2016-07-21 16:17:14 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: v8_presubmit on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_presubmit/builds/19977)
4 years, 5 months ago (2016-07-21 16:19:23 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2164903004/20001
4 years, 5 months ago (2016-07-22 07:49:58 UTC) #14
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 5 months ago (2016-07-22 08:14:10 UTC) #15
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/4feafee9d9741259e8ec3882fb61935a235ecc54 Cr-Commit-Position: refs/heads/master@{#37969}
4 years, 5 months ago (2016-07-22 08:14:58 UTC) #17
ofrobots
4 years, 5 months ago (2016-07-22 22:30:20 UTC) #18
Message was sent while issue was closed.
Note that this breaks the V8 + Node integration build, see here:
https://build.chromium.org/p/client.v8.fyi/builders/V8%20-%20node.js%20integr...

--------------
var util = require('util');
function CustomError(msg) {
  Error.call(this);
  Object.defineProperty(this, 'message',
                        { value: msg, enumerable: false });
  Object.defineProperty(this, 'name',
                        { value: 'CustomError', enumerable: false });
  Error.captureStackTrace(this, CustomError);
}
util.inherits(CustomError, Error);
const customError = new CustomError('bar');
console.log(Object.keys(customError));
--------------

Object.keys used to return an empty list before but now it returns [ 'stack' ].

Powered by Google App Engine
This is Rietveld 408576698