Commit b3749e92 authored by Leszek Swirski's avatar Leszek Swirski Committed by Commit Bot

[runtime] Fix AbortJS builtin to call AbortJS

Instead of calling Abort, which was failing when trying to read its
string argument as a Smi.

Change-Id: I008b8620cbb7df2a56fc5c5ea42f4d573b159f76
Reviewed-on: https://chromium-review.googlesource.com/856778Reviewed-by: 's avatarBenedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Leszek Swirski <leszeks@chromium.org>
Cr-Commit-Position: refs/heads/master@{#50431}
parent 16876610
......@@ -946,7 +946,7 @@ TF_BUILTIN(PromiseResolveThenableJob, InternalBuiltinsAssembler) {
TF_BUILTIN(AbortJS, CodeStubAssembler) {
Node* message = Parameter(Descriptor::kObject);
Node* reason = SmiConstant(0);
TailCallRuntime(Runtime::kAbort, reason, message);
TailCallRuntime(Runtime::kAbortJS, reason, message);
}
} // namespace internal
......
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