Commit 85238bd7 authored by Clemens Backes's avatar Clemens Backes Committed by Commit Bot

Fix cputracemark extension

If the type check fails, we should return. Otherwise we hit an error in
ToLocalChecked below.

R=yangguo@chromium.org

Bug: chromium:1061673
Change-Id: I39e5b90b3574d0d2b77f5d704023aabb1c8130cb
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2116035Reviewed-by: 's avatarYang Guo <yangguo@chromium.org>
Commit-Queue: Clemens Backes <clemensb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#66901}
parent 54048444
......@@ -19,6 +19,7 @@ void CpuTraceMarkExtension::Mark(
args.GetIsolate()->ThrowException(v8::String::NewFromUtf8Literal(
args.GetIsolate(),
"First parameter to cputracemark() must be a unsigned int32."));
return;
}
#if V8_HOST_ARCH_IA32 || V8_HOST_ARCH_X64
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment