mirror of https://github.com/lukechilds/node.git
Browse Source
Original commit message: Use baseline code to compute message locations. This switches Isolate::ComputeLocation to use baseline code when computing message locations. This unifies locations between optimized and non-optimized code by always going through the FrameSummary for location computation. R=bmeurer@chromium.org TEST=message/regress/regress-4266 BUG=v8:4266 LOG=n Review URL: https://codereview.chromium.org/1331603002 Cr-Commit-Position: refs/heads/master@{#30635} Fixes: https://github.com/nodejs/node/issues/3934 PR-URL: https://github.com/nodejs/node/pull/3937 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>process-exit-stdio-flushing
17 changed files with 61 additions and 18 deletions
@ -0,0 +1,11 @@ |
|||
// Copyright 2015 the V8 project authors. All rights reserved.
|
|||
// Use of this source code is governed by a BSD-style license that can be
|
|||
// found in the LICENSE file.
|
|||
|
|||
(function() { |
|||
try { |
|||
[].foo(); |
|||
} catch (e) { |
|||
throw e; |
|||
} |
|||
})(); |
@ -0,0 +1,10 @@ |
|||
# Copyright 2015 the V8 project authors. All rights reserved. |
|||
# Use of this source code is governed by a BSD-style license that can be |
|||
# found in the LICENSE file. |
|||
|
|||
*%(basename)s:9: TypeError: [].foo is not a function |
|||
throw e; |
|||
^ |
|||
TypeError: [].foo is not a function |
|||
at *%(basename)s:7:8 |
|||
at *%(basename)s:11:3 |
@ -0,0 +1,17 @@ |
|||
// Copyright 2015 the V8 project authors. All rights reserved.
|
|||
// Use of this source code is governed by a BSD-style license that can be
|
|||
// found in the LICENSE file.
|
|||
|
|||
// Flags: --turbo-filter=test --allow-natives-syntax
|
|||
|
|||
function test() { |
|||
try { |
|||
[].foo(); |
|||
} catch (e) { |
|||
return e.message; |
|||
} |
|||
} |
|||
|
|||
assertEquals("[].foo is not a function", test()); |
|||
%OptimizeFunctionOnNextCall(test); |
|||
assertEquals("[].foo is not a function", test()); |
Loading…
Reference in new issue